Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 979 for buffer (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                byte[] buffer1 = new byte[100];
                byte[] buffer2 = new byte[200];
    
                Arrays.fill(buffer1, (byte) 0x11);
                Arrays.fill(buffer2, (byte) 0x22);
    
                // First decode
                response.decode(buffer1, 0, 50);
                byte[] data1 = response.getData();
    
                // Second decode should overwrite
                response.decode(buffer2, 10, 60);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java

            // Status
            SMBUtil.writeInt4(0, buffer, headerStart + 8);
            // Command (READ = 0x0008)
            SMBUtil.writeInt2(0x0008, buffer, headerStart + 12);
            // Credit request/response
            SMBUtil.writeInt2(1, buffer, headerStart + 14);
            // Flags
            SMBUtil.writeInt4(0, buffer, headerStart + 16);
            // Next command
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top