- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 87 for readParameterWordsWireFormat (0.33 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
@MethodSource("int32Provider") @DisplayName("readParameterWordsWireFormat correctly decodes 32-bit offset") void testReadParameterWords(int expectedInt, byte[] bytes) { // The implementation reads via SMBUtil.readInt4 which returns an int // When assigned to a long field, it gets sign-extended int readLen = response.readParameterWordsWireFormat(bytes, 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComBlankResponseTest.java
} /** * Test for the readParameterWordsWireFormat method. * It should always return 0. */ @Test void testReadParameterWordsWireFormat() { assertEquals(0, response.readParameterWordsWireFormat(buffer, 0), "readParameterWordsWireFormat should return 0"); } /** * Test for the readBytesWireFormat 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/smb1/com/SmbComLockingAndX.java
dstIndex += 2; return start - dstIndex; } /** * {@inheritDoc} * * @see jcifs.internal.smb1.ServerMessageBlock#readParameterWordsWireFormat(byte[], int) */ @Override protected int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) { final int start = bufferIndex; this.fid = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2;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/smb1/com/SmbComTreeDisconnectTest.java
// When int result = smbComTreeDisconnect.readParameterWordsWireFormat(buffer, bufferIndex); // Then assertEquals(0, result); } /** * Test readParameterWordsWireFormat with various buffer sizes */ @Test @DisplayName("Test readParameterWordsWireFormat with different buffer sizes")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/SmbComWriteAndXResponseTest.java
/** * Test the readParameterWordsWireFormat method. */ @Test void testReadParameterWordsWireFormat() { SmbComWriteAndXResponse response = new SmbComWriteAndXResponse(); byte[] buffer = new byte[] { 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // count = 10 int bytesRead = response.readParameterWordsWireFormat(buffer, 0);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java
} /** * Test the readParameterWordsWireFormat method. */ @Test void testReadParameterWordsWireFormat() { // Given SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect(); byte[] buffer = new byte[10]; // When int result = smbComTreeDisconnect.readParameterWordsWireFormat(buffer, 0); // ThenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtCancel.java
return 0; } /** * {@inheritDoc} * * @see jcifs.internal.smb1.ServerMessageBlock#readParameterWordsWireFormat(byte[], int) */ @Override protected int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } /** * {@inheritDoc} *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComSetInformationResponseTest.java
} } @Nested @DisplayName("readParameterWordsWireFormat tests") class ReadParameterWords { @Test @DisplayName("Returns 0 with null array") void nullArray() { assertEquals(0, response.readParameterWordsWireFormat(null, 0)); } @ParameterizedTest @ValueSource(ints = { 1, 6 })Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 4.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComLogoffAndXTest.java
@ParameterizedTest @ValueSource(ints = { 0, -1, 7 }) @DisplayName("readParameterWordsWireFormat always returns 0") void readParameterWordsWireFormatReturnsZero(int index) { SmbComLogoffAndX msg = new SmbComLogoffAndX(null); assertEquals(0, msg.readParameterWordsWireFormat(new byte[5], index)); assertEquals(0, msg.readParameterWordsWireFormat(null, index)); } @ParameterizedTestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
} /** * Test the readParameterWordsWireFormat method. * This method should do nothing and return 0. */ @Test void testReadParameterWordsWireFormat() { byte[] buffer = new byte[10]; int bufferIndex = 0; // The method should return 0 as it reads no parameter words int result = smbComNegotiate.readParameterWordsWireFormat(buffer, bufferIndex);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4K bytes - Click Count (0)