- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 97 for allocation (0.06 sec)
-
src/main/java/jcifs/internal/fscc/FileFsSizeInformation.java
import jcifs.internal.util.SMBUtil; /** * Represents the FILE_FS_SIZE_INFORMATION structure used to query file system size information. * This structure provides details about the total allocation units, free allocation units, * sectors per allocation unit, and bytes per sector for a file system volume. */ public class FileFsSizeInformation implements AllocInfo { private long alloc; // Also handles SmbQueryFSSizeInfoRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/FileFsFullSizeInformation.java
/** * Represents the FILE_FS_FULL_SIZE_INFORMATION structure used to query comprehensive file system size information. * This structure provides complete allocation details including total allocation units, caller-available free units, * actual free allocation units, sectors per allocation unit, and bytes per sector. */ public class FileFsFullSizeInformation implements AllocInfo, FileSystemInformation, Decodable {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
// Simulate setting info using reflection SmbInfoAllocation allocation = new SmbInfoAllocation(); setInfoField(response, allocation); SmbInfoAllocation result = response.getInfo(SmbInfoAllocation.class); assertNotNull(result); assertSame(allocation, result); } @Test void testGetInfoWithClass_Incompatible() throws Exception {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
} // Check total memory allocation long totalSize = (long) size * (long) elementSize; long maxAllocation = 100 * 1024 * 1024; // 100MB max if (totalSize > maxAllocation) { failedValidations.incrementAndGet(); log.warn("Array allocation too large: {} bytes", totalSize); throw new SmbException("Array allocation exceeds limit"); } }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
import org.junit.jupiter.api.Test; /** * Security-focused test cases for BufferCache to verify buffer overflow protection. */ public class BufferCacheSecurityTest { /** * Test that buffer allocation validates size to prevent overflow. */ @Test public void testBufferSizeValidation() { // When - Get a buffer byte[] buffer = BufferCache.getBuffer();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.6K bytes - Viewed (0) -
src/main/java/jcifs/internal/fscc/SmbInfoAllocation.java
* This structure provides allocation information for a file system including total units, * free units, sectors per allocation unit, and bytes per sector. */ public class SmbInfoAllocation implements AllocInfo { /** * Default constructor for SMB allocation information. */ public SmbInfoAllocation() { // Default constructor }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putLong(1048576L); // Total allocation units (1M) buffer.putLong(524288L); // Caller available allocation units (512K) buffer.putLong(524288L); // Actual free allocation units (512K) buffer.putInt(8); // Sectors per allocation unit buffer.putInt(512); // Bytes per sector byte[] bufferArray = buffer.array();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/AllocInfo.java
/** * Interface for file system allocation information providing capacity and free space details. * Used in SMB protocol operations to query disk space information from remote SMB shares. * * @author mbechler */ public interface AllocInfo extends FileSystemInformation { /** * Gets the total capacity of the allocation. * * @return total capacity */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
ByteBuffer buffer = ByteBuffer.allocate(24); buffer.order(ByteOrder.LITTLE_ENDIAN); buffer.putLong(1048576L); // Total allocation units (1M) buffer.putLong(524288L); // Free allocation units (512K) buffer.putInt(8); // Sectors per allocation unit buffer.putInt(512); // Bytes per sector byte[] bufferArray = buffer.array(); // When
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java
final int start = bufferIndex; final SmbInfoAllocation info = new SmbInfoAllocation(); // Read total allocation units. info.alloc = readInt8(buffer, bufferIndex); bufferIndex += 8; // read caller available allocation units info.free = readInt8(buffer, bufferIndex); bufferIndex += 8; // skip actual free units bufferIndex += 8;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.1K bytes - Viewed (0)