- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for readParameterWordsWireFormat (0.23 sec)
-
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")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
assertNotNull(response); // Verify configuration is set through parent constructor verify(mockConfig, atLeastOnce()).getPid(); } @Test @DisplayName("Test readParameterWordsWireFormat with zero setup count") void testReadParameterWordsWireFormatZeroSetupCount() throws Exception { byte[] buffer = new byte[100]; int bufferIndex = 10; // Prepare buffer with test data
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java
SMBUtil.writeUTime(lastWriteTime, buffer, bufferIndex + 2); SMBUtil.writeInt4(fileSize, buffer, bufferIndex + 6); // Read the data int bytesRead = response.readParameterWordsWireFormat(buffer, bufferIndex); // Verify results assertEquals(20, bytesRead); assertEquals(fileAttributes, response.getAttributes()); assertEquals(fileSize, response.getSize());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java
} @Test @DisplayName("readParameterWordsWireFormat should return 0") void testReadParameterWordsReturnsZero() throws Exception { // Given byte[] buffer = new byte[100]; int bufferIndex = 10; // When Method method = SmbComNtCancel.class.getDeclaredMethod("readParameterWordsWireFormat", byte[].class, int.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
int writeBytesWireFormat(byte[] dst, int dstIndex) { bytesWritten = 20; // simulate 20 bytes of data return bytesWritten; } @Override int readParameterWordsWireFormat(byte[] buffer, int bufferIndex) { paramWordsRead = 10; return paramWordsRead; } @Override int readBytesWireFormat(byte[] buffer, int bufferIndex) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java
} /* * no point in calling readParameterWordsWireFormat if there are no more * parameter words. besides, win98 doesn't return "OptionalSupport" field */ if (this.wordCount > 2) { readParameterWordsWireFormat(buffer, bufferIndex + 4); /*
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java
} /* * no point in calling readParameterWordsWireFormat if there are no more * parameter words. besides, win98 doesn't return "OptionalSupport" field */ if (wordCount > 2) { readParameterWordsWireFormat(buffer, bufferIndex + 4);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
* provided purely to expose protected state and to satisfy the abstract * method contract. The tests focus on public API behaviour and the * parsing logic in {@code readParameterWordsWireFormat} and * {@code readBytesWireFormat}. */ public class SmbComTransactionResponseTest { /** A minimal concrete subclass for testing */ private static class DummyResponse extends SmbComTransactionResponse {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComRenameTest.java
// Then assertTrue(result > 0); assertEquals((byte) 0x04, dst[0]); // First buffer format byte } /** * Test readParameterWordsWireFormat method */ @Test @DisplayName("Test readParameterWordsWireFormat always returns 0") public void testReadParameterWordsWireFormat() { // Given byte[] buffer = new byte[10];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
wordCount = buffer[bufferIndex]; bufferIndex++; if (wordCount != 0) { int n = readParameterWordsWireFormat(buffer, bufferIndex); if ((n != wordCount * 2) && (LogStream.level >= 5)) { log.println("wordCount * 2=" + wordCount * 2 + " but readParameterWordsWireFormat returned " + n); } bufferIndex += wordCount * 2; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0)