- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 108 for readParameterWordsWireFormat (1.28 sec)
-
src/main/java/jcifs/internal/smb1/com/SmbComQueryInformationResponse.java
return 0; } @Override protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) { if (this.wordCount == 0) { return 0; } this.fileAttributes = SMBUtil.readInt2(buffer, bufferIndex); bufferIndex += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.6K 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/SmbComCreateDirectoryTest.java
// This method is empty, so it should return 0 SmbComCreateDirectory smbCom = new SmbComCreateDirectory(mockConfig, "testDir"); byte[] buffer = new byte[10]; int result = smbCom.readParameterWordsWireFormat(buffer, 0); assertEquals(0, result); } @Test void testReadBytesWireFormat() { // This method is empty, so it should return 0
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/com/SmbComCloseTest.java
* Test method for {@link jcifs.internal.smb1.com.SmbComClose#readParameterWordsWireFormat(byte[], int)}. */ @Test public void testReadParameterWordsWireFormat() { // Given SmbComClose smbComClose = new SmbComClose(config, 1, 1L); byte[] buffer = new byte[0]; // When int bytesRead = smbComClose.readParameterWordsWireFormat(buffer, 0); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComClose.java
} return 6; } @Override protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int readParameterWordsWireFormat(final byte[] buffer, final int bufferIndex) { return 0; } @Override protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) { return 0; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java
return 0; } @Override protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) { final int start = bufferIndex; bufferIndex += 2; // reserved this.dataCompactionMode = SMBUtil.readInt2(buffer, bufferIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K 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/internal/smb1/com/SmbComSessionSetupAndXResponse.java
return 0; } @Override protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) { return 0; } @Override protected int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) { final int start = bufferIndex; this.isLoggedInAsGuest = ((buffer[bufferIndex] & 0x01) == 0x01) == true; bufferIndex += 2;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.7K 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) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
buffer.put((byte) 8); // encryptionKeyLength byte[] paramWords = buffer.array(); // Call the method to test int bytesRead = response.readParameterWordsWireFormat(paramWords, 0); // Assert that the correct number of bytes were read assertEquals(34, bytesRead); // Assert that the serverData fields are populated correctly
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0)