- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 954 for buffer2 (0.05 sec)
-
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java
assertEquals(32, SMBUtil.readInt2(buffer, offset)); // Verify notify flags assertEquals(Smb2ChangeNotifyRequest.SMB2_WATCH_TREE, SMBUtil.readInt2(buffer, offset + 2)); // Verify output buffer length assertEquals(8192, SMBUtil.readInt4(buffer, offset + 4)); // Verify file ID byte[] readFileId = new byte[16]; System.arraycopy(buffer, offset + 8, readFileId, 0, 16);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java
// Test multiple calls to readDataWireFormat to ensure buffer is overwritten byte[] firstData = "First data set".getBytes(); byte[] secondData = "Second data set".getBytes(); byte[] buffer1 = new byte[100]; byte[] buffer2 = new byte[100]; System.arraycopy(firstData, 0, buffer1, 0, firstData.length); System.arraycopy(secondData, 0, buffer2, 0, secondData.length); // First read
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java
fileInternalInfo.decode(buffer2, 0, buffer2.length); assertEquals(indexNumber2, fileInternalInfo.getIndexNumber()); // Third decode - should overwrite again byte[] buffer3 = new byte[8]; long indexNumber3 = 0x3333333333333333L; SMBUtil.writeInt8(indexNumber3, buffer3, 0); fileInternalInfo.decode(buffer3, 0, buffer3.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopyChunkCopyResponseTest.java
@DisplayName("Should decode minimum buffer size") void testDecodeMinimumBufferSize() throws SMBProtocolDecodingException { byte[] buffer = new byte[12]; // Exact size needed SMBUtil.writeInt4(3, buffer, 0); SMBUtil.writeInt4(4096, buffer, 4); SMBUtil.writeInt4(12288, buffer, 8); int bytesDecoded = response.decode(buffer, 0, buffer.length);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
byte[] buffer1 = new byte[100]; byte[] buffer2 = new byte[100]; int bytesWritten1 = info.encode(buffer1, 0); int bytesWritten2 = info.encode(buffer2, 0); assertEquals(bytesWritten1, bytesWritten2); assertArrayEquals(buffer1, buffer2); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
// Second read with different values byte[] buffer2 = new byte[60]; SMBUtil.writeInt2(60, buffer2, 0); SMBUtil.writeInt2(2, buffer2, 2); SMBUtil.writeInt8(2000, buffer2, 40); SMBUtil.writeInt8(1500, buffer2, 48); SMBUtil.writeInt4(0x02, buffer2, 56); response.readBytesWireFormat(buffer2, 0); // Values should be updated
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeResponseTest.java
// Arrange byte[] buffer = new byte[100]; SMBUtil.writeInt2(0, buffer, 0); SMBUtil.writeInt2(0, buffer, 2); SMBUtil.writeInt2(0, buffer, 4); // Act & Assert assertEquals(0, response.readSetupWireFormat(buffer, 0, 100)); assertEquals(6, response.readParametersWireFormat(buffer, 0, 100));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0)