- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 153 for readBytesWireFormat (0.09 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
byte[] bufferCopy = buffer.clone(); // Call readBytesWireFormat response.readBytesWireFormat(buffer, bufferIndex); // Verify buffer wasn't modified assertArrayEquals(bufferCopy, buffer, "Buffer content should not be modified"); } @Test @DisplayName("Test multiple calls to readBytesWireFormat")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java
assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, bufferIndex), "Should throw SMBProtocolDecodingException for structure size " + invalidSize); assertEquals("Expected structureSize = 9", exception.getMessage()); } @Test @DisplayName("Test readBytesWireFormat with single file entry")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 23.5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java
byte[] bufferCopy = buffer.clone(); // Call readBytesWireFormat response.readBytesWireFormat(buffer, bufferIndex); // Verify buffer wasn't modified except for the decode operations assertArrayEquals(bufferCopy, buffer, "Buffer content should not be modified"); } @Test @DisplayName("Test readBytesWireFormat with offset calculation")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 24.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/lock/Smb2LockResponse.java
return 0; } /** * {@inheritDoc} * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 4) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.1K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java
/** * {@inheritDoc} * * @throws SMBProtocolDecodingException if an error occurs during decoding * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException { final int structureSize = SMBUtil.readInt2(buffer, bufferIndex); if (structureSize != 4) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
byte[] buffer = new byte[10]; SMBUtil.writeInt2(4, buffer, 0); // When int read1 = response1.readBytesWireFormat(buffer, 0); int read2 = response2.readBytesWireFormat(buffer, 0); // Then assertEquals(4, read1); assertEquals(4, read2); } } @NestedCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
int bufferIndex = 0; // When int result = smbComTreeDisconnect.readBytesWireFormat(buffer, bufferIndex); // Then assertEquals(0, result); } /** * Test readBytesWireFormat with various buffer sizes */ @Test @DisplayName("Test readBytesWireFormat with different buffer sizes") public void testReadBytesWireFormatWithDifferentBufferSizes() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java
} /** * Test for the readBytesWireFormat method. * It should always return 0. */ @Test void testReadBytesWireFormat() { assertEquals(0, response.readBytesWireFormat(buffer, 0), "readBytesWireFormat should return 0"); } /** * Test for the toString method.Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java
* * @throws SMBProtocolDecodingException * if the response data is malformed * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException { final int start = bufferIndex;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.8K bytes - Click Count (1) -
src/main/java/jcifs/internal/smb2/create/Smb2CloseRequest.java
} return dstIndex - start; } /** * {@inheritDoc} * * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) { return 0; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.6K bytes - Click Count (0)