- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 153 for Sizes (0.01 sec)
-
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
// Access size8 method via reflection Method size8Method = ServerMessageBlock2.class.getDeclaredMethod("size8", int.class); size8Method.setAccessible(true); // When & Then - test various sizes for 8-byte alignment assertEquals(8, size8Method.invoke(request, 1)); assertEquals(8, size8Method.invoke(request, 8)); assertEquals(16, size8Method.invoke(request, 9));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/archive/zip/writer.go
// This is necessary as most compression formats have non-zero lengths // even when compressing an empty string. fh.Method = Store fh.Flags &^= 0x8 // we will not write a data descriptor // Explicitly clear sizes as they have no meaning for directories. fh.CompressedSize = 0 fh.CompressedSize64 = 0 fh.UncompressedSize = 0 fh.UncompressedSize64 = 0 ow = dirWriter{} } else {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
} @ParameterizedTest @ValueSource(ints = { 0, 1, 2, 3, 5, 6, 8, 16, 100, 255, 1024, 4096, 65535 }) @DisplayName("Should throw exception for various invalid structure sizes") void testReadBytesWireFormatVariousInvalidSizes(int invalidSize) { // Given byte[] buffer = new byte[10]; int bufferIndex = 0;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
* and other security vulnerabilities. */ public final class InputValidator { private InputValidator() { // Utility class } // Maximum sizes for various SMB fields (based on protocol specifications) public static final int MAX_SMB_PATH_LENGTH = 32767; // Windows MAX_PATH public static final int MAX_USERNAME_LENGTH = 256;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
} catch (Exception e) { throw new RuntimeException(e); } } @ParameterizedTest @DisplayName("Test writeBytesWireFormat with different info sizes") @ValueSource(ints = { 0, 10, 50, 100, 255 }) void testWriteBytesWireFormatWithDifferentSizes(int infoSize) { request = new Smb2SetInfoRequest(mockConfig, testFileId);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
assertTrue(output.contains("...")); } @ParameterizedTest @ValueSource(ints = { 1, 15, 16, 17, 31, 32, 33, 64, 128 }) @DisplayName("Should handle various data sizes in hexdump") void testHexdumpVariousSizes(int size) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream ps = new PrintStream(baos); byte[] data = createTestData(size);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java
} @ParameterizedTest @ValueSource(ints = { 0, 1, 2, 3, 5, 6, 100, 65535 }) @DisplayName("Should throw exception for various invalid structure sizes") void testReadBytesWireFormatVariousInvalidSizes(int structureSize) { byte[] buffer = new byte[1024]; int bufferIndex = 50;Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java
} // Duplicate testFlags method removed - keeping the first one @ParameterizedTest @ValueSource(ints = { 0, 1, 64, 1024, 4096, 65536 }) @DisplayName("Should handle various message sizes") void testVariousMessageSizes(int messageSize) { // When transformHeader.setOriginalMessageSize(messageSize); // ThenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.7K bytes - Viewed (0) -
cmd/erasure-decode.go
// Subsequent reads will reuse this buffer. p.buf[bufIdx] = make([]byte, p.shardSize) } // For the last shard, the shardsize might be less than previous shard sizes. // Hence the following statement ensures that the buffer size is reset to the right size. p.buf[bufIdx] = p.buf[bufIdx][:p.shardSize] n, err := rr.ReadAt(p.buf[bufIdx], p.offset) if err != nil { switch {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Thu Aug 29 01:40:52 UTC 2024 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java
assertTrue((endTime - startTime) < 1_000_000); } @ParameterizedTest @ValueSource(ints = { 24, 32, 100, 1000, 10000 }) @DisplayName("Should handle various buffer sizes correctly") void testVariousBufferSizes(int bufferSize) throws SMBProtocolDecodingException { byte[] buffer = new byte[bufferSize]; FileFsSizeInformation info = new FileFsSizeInformation();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0)