- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for bytesPerSect (0.11 sec)
-
src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java
long expectedCapacity = alloc * sectPerAlloc * bytesPerSect; assertEquals(expectedCapacity, smbInfoAllocation.getCapacity()); // Verify free space calculation: free * sectPerAlloc * bytesPerSect long expectedFree = free * sectPerAlloc * bytesPerSect; assertEquals(expectedFree, smbInfoAllocation.getFree()); } @TestRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
buffer.putInt(sectPerAlloc); buffer.putInt(bytesPerSect); byte[] bufferArray = buffer.array(); // When int bytesConsumed = fileFsFullSizeInfo.decode(bufferArray, 0, bufferArray.length); // Then assertEquals(32, bytesConsumed); assertEquals(alloc * sectPerAlloc * bytesPerSect, fileFsFullSizeInfo.getCapacity());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
buffer[8] = 0x00; buffer[9] = 0x10; // alloc = 4096 buffer[12] = 0x00; buffer[13] = 0x08; // free = 2048 buffer[16] = 0x00; buffer[17] = 0x02; // bytesPerSect = 512 int bytesDecoded = smbInfoAllocation.decode(buffer, 0, buffer.length); assertEquals(20, bytesDecoded); assertEquals(8L * 4096L * 512L, smbInfoAllocation.getCapacity());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
SMBUtil.writeInt4(1000000, buffer, offset); offset += 4; // free (4 bytes) SMBUtil.writeInt4(500000, buffer, offset); offset += 4; // bytesPerSect (2 bytes + 2 padding) SMBUtil.writeInt2(512, buffer, offset); offset += 4; // Set dataCount using reflection setDataCount(response, offset);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0)