- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,875 for length (0.04 sec)
-
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
@DisplayName("Should handle various data lengths") void testVariousDataLengths(int length) throws SMBProtocolDecodingException { int result = testResponse.decode(testBuffer, 0, length); assertEquals(length, result); assertNotNull(testResponse.getData()); assertEquals(length, testResponse.getData().length); } } @NestedRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/test/java/jcifs/util/StringsTest.java
assertNotNull(utf16Bytes, "UTF-16LE bytes should not be null"); assertTrue(utf8Bytes.length > 0, "UTF-8 bytes should not be empty"); assertTrue(utf16Bytes.length > 0, "UTF-16LE bytes should not be empty"); assertNotEquals(utf8Bytes.length, utf16Bytes.length, "Different encodings should produce different lengths"); } @ParameterizedTest
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/compression/DefaultCompressionService.java
} return compress(data, 0, data.length, algorithm); } @Override public byte[] compress(byte[] data, int offset, int length, int algorithm) throws CIFSException { if (data == null) { throw new CIFSException("Data cannot be null"); } if (offset < 0 || length < 0 || offset + length > data.length) { throw new CIFSException("Invalid offset or length");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
System.arraycopy(testData, 0, buffer, 10, testData.length); int result = response.readDataWireFormat(buffer, 10, testData.length); assertEquals(testData.length, result); // Verify data was copied to outputBuffer byte[] expectedData = new byte[testData.length]; System.arraycopy(outputBuffer, 0, expectedData, 0, testData.length); assertArrayEquals(testData, expectedData); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ProtocolHelperTest.java
assertEquals(2, protocolHelper.getWebProtocols().length); assertEquals(3, protocolHelper.getFileProtocols().length); } public void test_loadProtocols() { final ProtocolHelper protocolHelper = new ProtocolHelper(); protocolHelper.loadProtocols("org.codelibs.fess.test.net.protocol"); assertEquals(1, protocolHelper.getWebProtocols().length);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 19 23:49:30 UTC 2025 - 21.5K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacUnicodeString.java
* @param pointer the pointer/offset to the string data */ public PacUnicodeString(final short length, final short maxLength, final int pointer) { this.length = length; this.maxLength = maxLength; this.pointer = pointer; } /** * Gets the actual length of the string in bytes. * * @return the string length */ public short getLength() {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Reader.kt
TYPE_RST_STREAM -> readRstStream(handler, length, flags, streamId) TYPE_SETTINGS -> readSettings(handler, length, flags, streamId) TYPE_PUSH_PROMISE -> readPushPromise(handler, length, flags, streamId) TYPE_PING -> readPing(handler, length, flags, streamId) TYPE_GOAWAY -> readGoAway(handler, length, flags, streamId) TYPE_WINDOW_UPDATE -> readWindowUpdate(handler, length, flags, streamId)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 19.8K bytes - Viewed (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
void testReadLengthMaximum() { byte[] src = { (byte) 0x00, (byte) 0x01, (byte) 0xFF, (byte) 0xFF }; int length = SessionServicePacket.readLength(src, 0); assertEquals(0x01FFFF, length); } @Test @DisplayName("readLength should handle zero length") void testReadLengthZero() { byte[] src = { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
} if (length < 0) { failedValidations.incrementAndGet(); bufferOverflowsPrevented.incrementAndGet(); throw new SmbException("Negative length: " + length); } // Check for integer overflow if (offset > buffer.length - length) { failedValidations.incrementAndGet();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeTest.java
void testConstructorInitialization() { // Given int offset = 0; int length = TEST_DATA.length; // When transCallNamedPipe = new TransCallNamedPipe(mockConfig, TEST_PIPE_NAME, TEST_DATA, offset, length); // Then assertNotNull(transCallNamedPipe);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0)