- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 56 for bytesRead (0.04 sec)
-
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java
SMBUtil.writeInt2(512, buffer, offset); offset += 4; // Set dataCount using reflection setDataCount(response, offset); int bytesRead = response.readDataWireFormat(buffer, 0, offset); assertEquals(offset, bytesRead); assertNotNull(response.getInfo()); assertTrue(response.getInfo() instanceof SmbInfoAllocation);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java
void testReadValidWriteResponse() throws SMBProtocolDecodingException { byte[] buffer = createValidWriteResponse(1024, 512); int bytesRead = response.readBytesWireFormat(buffer, 0); assertEquals(16, bytesRead); // Structure size + reserved (4) + count (4) + remaining (4) + channel info (4) assertEquals(1024, response.getCount());
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
System.arraycopy(nameBytes, 0, buffer, 20, nameBytes.length); FileRenameInformation2 info = new FileRenameInformation2(); int bytesRead = info.decode(buffer, 0, buffer.length); assertEquals(20 + nameBytes.length, bytesRead); } @Test @DisplayName("Test decode with replaceIfExists false") void testDecodeWithReplaceIfExistsFalse() throws SMBProtocolDecodingException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
0x00, 0x00 // Reserved }; // When int bytesRead = response.readBytesWireFormat(wireData, 0); // Then assertEquals(4, bytesRead); assertEquals(wireData.length, bytesRead); } @Test @DisplayName("Should handle concurrent read operations")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralResponseTest.java
byte[] buffer = createValidDfsReferralBuffer(); int bytesRead = response.readDataWireFormat(buffer, 0, buffer.length); assertTrue(bytesRead > 0); // readDataWireFormat returns bytes consumed from header, not full buffer assertEquals(28, bytesRead); // Header + one referral structure assertNotNull(response.getDfsResponse()); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java
SMBUtil.writeInt2(EncryptionNegotiateContext.CIPHER_AES128_CCM, buffer, 2); EncryptionNegotiateContext context = new EncryptionNegotiateContext(); int bytesRead = context.decode(buffer, 0, 4); assertEquals(4, bytesRead); assertNotNull(context.getCiphers()); assertEquals(1, context.getCiphers().length);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
(byte) 0xFF, 0x01, 0x1F, 0x00 // MaximalAccess }; // When int bytesRead = response.readBytesWireFormat(wireData, 0); // Then assertEquals(16, bytesRead); assertEquals(wireData.length, bytesRead); assertEquals((byte) 0x01, response.getShareType()); assertEquals(0x00000001, response.getShareFlags());Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponseTest.java
buffer[bufferIndex + 35] = 0x00; // setupCount = 0 buffer[bufferIndex + 36] = 0x00; // reserved int bytesRead = response.readParameterWordsWireFormat(buffer, bufferIndex); // Verify the correct number of bytes were read (37 bytes total) assertEquals(37, bytesRead); // Verify values through reflection
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java
System.arraycopy(expectedFileId, 0, buffer, bufferIndex, 16); // Read the buffer int bytesRead = notification.readBytesWireFormat(buffer, 0); // Verify the bytes read assertEquals(24, bytesRead); // Verify the fields were set correctly using reflection
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
SMBUtil.writeInt2(0, buffer, bufferIndex + 2); // Reserved field // When int bytesRead = response.readBytesWireFormat(buffer, bufferIndex); // Then assertEquals(4, bytesRead); } @Test @DisplayName("Should read from various buffer positions")
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0)