- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 966 for buffer1 (0.07 sec)
-
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/TransCallNamedPipeResponseTest.java
} @Test void testReadSetupWireFormat() { byte[] buffer = new byte[100]; int result = response.readSetupWireFormat(buffer, 0, 100); assertEquals(0, result); } @Test void testReadParametersWireFormat() { byte[] buffer = new byte[100]; int result = response.readParametersWireFormat(buffer, 0, 100); assertEquals(0, result); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
NdrShort ndrShort = new NdrShort(50); NdrBuffer buffer1 = mock(NdrBuffer.class); NdrBuffer buffer2 = mock(NdrBuffer.class); when(buffer2.dec_ndr_short()).thenReturn(75); // When: Performing multiple operations ndrShort.encode(buffer1); ndrShort.decode(buffer2); // Then: Should handle both operations correctly
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java
// Encode multiple times to verify consistency byte[] buffer1 = new byte[8]; byte[] buffer2 = new byte[8]; int bytes1 = info.encode(buffer1, 0); int bytes2 = info.encode(buffer2, 0); assertEquals(8, bytes1); assertEquals(8, bytes2); assertArrayEquals(buffer1, buffer2); } @Test @DisplayName("Test multiple decode operations")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java
// Then assertEquals(4, bytesRead); } @Test @DisplayName("Should handle concurrent access safely") void testConcurrentAccess() throws InterruptedException { // Given byte[] buffer1 = new byte[10]; byte[] buffer2 = new byte[10]; SMBUtil.writeInt2(4, buffer1, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
byte[] buffer1 = new byte[256]; byte[] buffer2 = new byte[256]; // When int bytes1 = request.writeBytesWireFormat(buffer1, 0); int bytes2 = request.writeBytesWireFormat(buffer2, 10); // Then assertEquals(bytes1, bytes2); assertEquals(SMBUtil.readInt2(buffer1, 0), SMBUtil.readInt2(buffer2, 10)); } @Test
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/smb2/lock/Smb2LockRequestTest.java
byte[] buffer = new byte[512]; int bytesWritten = req.writeBytesWireFormat(buffer, 0); assertEquals(48, SMBUtil.readInt2(buffer, 0)); // Structure size assertEquals(3, SMBUtil.readInt2(buffer, 2)); // Lock count assertArrayEquals(testFileId, Arrays.copyOfRange(buffer, 8, 24)); // Each lock is 24 bytes
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 25.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0)