- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 181 for readBytesWireFormat (0.24 seconds)
-
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/io/Smb2WriteResponseTest.java
} @Nested @DisplayName("ReadBytesWireFormat Tests") class ReadBytesWireFormatTests { @Test @DisplayName("Should read valid write response") void testReadValidWriteResponse() throws SMBProtocolDecodingException { byte[] buffer = createValidWriteResponse(1024, 512); int bytesRead = response.readBytesWireFormat(buffer, 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.9K 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/notify/Smb2ChangeNotifyResponse.java
* * @throws SMBProtocolDecodingException * If there is an error decoding the response * * @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 - 3.9K 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/main/java/jcifs/internal/smb1/com/SmbComLockingAndX.java
} } return start - dstIndex; } /** * {@inheritDoc} * * @see jcifs.internal.smb1.ServerMessageBlock#readBytesWireFormat(byte[], int) */ @Override protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException { final int start = bufferIndex; for (int i = 0; i < this.unlocks.length; i++) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.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/main/java/jcifs/internal/smb2/info/Smb2QueryInfoRequest.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 - 6.4K bytes - Click Count (0)