- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 107 for writeParameterWordsWireFormat (0.38 seconds)
-
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
} /** * Verify that writeParameterWordsWireFormat writes the file id and the * unsigned time correctly. The last write time is zero which should be * encoded as four 0xFF bytes by {@code writeUTime}. */ @ParameterizedTest(name = "fid={0}, lastWriteTime={1}") @MethodSource("validParams") @DisplayName("happy: writeParameterWordsWireFormat writes correct bytes")Created: 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/SmbComBlankResponseTest.java
buffer = new byte[100]; } /** * Test for the writeParameterWordsWireFormat method. * It should always return 0. */ @Test void testWriteParameterWordsWireFormat() { assertEquals(0, response.writeParameterWordsWireFormat(buffer, 0), "writeParameterWordsWireFormat should return 0"); } /** * Test for the writeBytesWireFormat 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/test/java/jcifs/smb1/smb1/SmbComTreeDisconnectTest.java
} /** * Test the writeParameterWordsWireFormat method. */ @Test void testWriteParameterWordsWireFormat() { // Given SmbComTreeDisconnect smbComTreeDisconnect = new SmbComTreeDisconnect(); byte[] dst = new byte[10]; // When int result = smbComTreeDisconnect.writeParameterWordsWireFormat(dst, 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/com/SmbComLockingAndX.java
super(config); } /** * {@inheritDoc} * * @see jcifs.internal.smb1.ServerMessageBlock#writeParameterWordsWireFormat(byte[], int) */ @Override protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) { final int start = dstIndex; SMBUtil.writeInt2(this.fid, dst, dstIndex); dstIndex += 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
int dstIndex = 0; // When int result = smbComTreeDisconnect.writeParameterWordsWireFormat(dst, dstIndex); // Then assertEquals(0, result); } /** * Test writeParameterWordsWireFormat with various buffer sizes */ @Test @DisplayName("Test writeParameterWordsWireFormat 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/internal/smb1/trans/nt/SmbComNtTransactionTest.java
int bytesWritten = transaction.writeParameterWordsWireFormat(dst, 0); // Verify setup count is written correctly assertEquals(3, dst[35]); // Verify the total bytes written accounts for setup words assertTrue(bytesWritten >= 38 + 6); // Base structure + setup words } @Test @DisplayName("Test writeParameterWordsWireFormat returns correct byte count")Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.1K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java
assertEquals(8, bytesRead); } /** * Test the writeParameterWordsWireFormat method. */ @Test void testWriteParameterWordsWireFormat() { SmbComWriteAndXResponse response = new SmbComWriteAndXResponse(); byte[] dst = new byte[0]; int bytesWritten = response.writeParameterWordsWireFormat(dst, 0); // This method does nothing and should return 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/internal/smb1/trans/nt/SmbComNtCancelTest.java
} @Test @DisplayName("writeParameterWordsWireFormat should return 0") void testWriteParameterWordsReturnsZero() throws Exception { // Given byte[] dst = new byte[100]; int dstIndex = 10; // When Method method = SmbComNtCancel.class.getDeclaredMethod("writeParameterWordsWireFormat", byte[].class, int.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateTest.java
} /** * Test the writeParameterWordsWireFormat method. * This method should do nothing and return 0. */ @Test void testWriteParameterWordsWireFormat() { byte[] dst = new byte[10]; int dstIndex = 0; // The method should return 0 as it writes no parameter words int result = smbComNegotiate.writeParameterWordsWireFormat(dst, dstIndex);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComSeekResponse.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 2.8K bytes - Click Count (0)