- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 979 for buffer (0.15 sec)
-
src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java
byte[] buffer = new byte[context.size()]; int bytesWritten = context.encode(buffer, 0); assertEquals(context.size(), bytesWritten); // Verify context header assertEquals(0, SMBUtil.readInt4(buffer, 0)); // Next assertEquals(16, SMBUtil.readInt2(buffer, 4)); // NameOffset assertEquals(4, SMBUtil.readInt2(buffer, 6)); // NameLength
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 01:47:47 UTC 2025 - 10.1K 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/Smb2OplockBreakNotificationTest.java
@Test @DisplayName("Should not modify buffer during write") void testWriteDoesNotModifyBuffer() { byte[] buffer = new byte[64]; Arrays.fill(buffer, (byte) 0xAA); byte[] originalBuffer = buffer.clone(); notification.writeBytesWireFormat(buffer, 0); assertArrayEquals(originalBuffer, buffer); } } @Nested
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K 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) -
src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java
void testReadParameterWordsWithShortBuffer() { byte[] buffer = new byte[] { 0x00, 0x01, 0x02 }; // only three bytes assertThrows(ArrayIndexOutOfBoundsException.class, () -> response.readParameterWordsWireFormat(buffer, 0)); } @Test @DisplayName("readParameterWordsWireFormat with null buffer - throws NullPointerException")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
docs/smb3-features/05-rdma-smb-direct-design.md
protected final ByteBuffer buffer; protected final EnumSet<RdmaAccess> accessFlags; protected final int localKey; protected final int remoteKey; protected final long address; protected volatile boolean valid; public RdmaMemoryRegion(ByteBuffer buffer, EnumSet<RdmaAccess> access) { this.buffer = buffer; this.accessFlags = access;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 35.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java
for (int i = 0; i < buffer.length; i++) { buffer[i] = (byte) (i % 256); } // Set structure size to 2 SMBUtil.writeInt2(2, buffer, bufferIndex); // Make a copy of the buffer byte[] bufferCopy = buffer.clone(); // Call readBytesWireFormat response.readBytesWireFormat(buffer, bufferIndex);
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/io/Smb2ReadResponseTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java
@Test @DisplayName("Should handle malformed buffer gracefully") void testMalformedBuffer() { // Given - buffer with random data byte[] buffer = new byte[10]; for (int i = 0; i < buffer.length; i++) { buffer[i] = (byte) (Math.random() * 256); } // When & Then // Should either read successfully if random data happens to be 4,
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/smb2/session/Smb2SessionSetupRequestTest.java
assertEquals(securityMode, buffer[bodyOffset + 3] & 0xFF); // Capabilities assertEquals(capabilities, SMBUtil.readInt4(buffer, bodyOffset + 4)); // Channel assertEquals(0, SMBUtil.readInt4(buffer, bodyOffset + 8)); // Security Buffer Offset int securityBufferOffset = SMBUtil.readInt2(buffer, bodyOffset + 12);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0)