Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 48 of 48 for structureSize (0.05 sec)

  1. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

         * securityBufferOffset is set relative to header start.
         */
        private void buildSessionSetupBody(byte[] buf, int headerStart, int bodyStart, int sessionFlags, int secBufOffset, byte[] blob) {
            // StructureSize (must be 9)
            SMBUtil.writeInt2(9, buf, bodyStart);
            // SessionFlags at +2
            SMBUtil.writeInt2(sessionFlags, buf, bodyStart + 2);
            // SecurityBufferOffset (+4) and Length (+6)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

                            "Should throw SMBProtocolDecodingException for invalid structure size");
    
            assertEquals("Expected structureSize = 9", exception.getMessage());
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 100, 255, 256, 65535 })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                SMBProtocolDecodingException exception =
                        assertThrows(SMBProtocolDecodingException.class, () -> notification.readBytesWireFormat(buffer, 0));
    
                assertEquals("Expected structureSize = 24", exception.getMessage());
            }
    
            @ParameterizedTest
            @DisplayName("Should read different oplock levels correctly")
            @ValueSource(bytes = { 0x00, 0x01, 0x02, 0x08, (byte) 0xFF })
    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/Smb2CloseResponseTest.java

                SMBProtocolDecodingException exception =
                        assertThrows(SMBProtocolDecodingException.class, () -> response.readBytesWireFormat(buffer, 0));
                assertEquals("Expected structureSize = 60", exception.getMessage());
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 10, 20, 30 })
            @DisplayName("Should correctly read from different buffer offsets")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/DurableHandleRequest.java

         * Context name for durable handle request
         */
        public static final String CONTEXT_NAME = "DHnQ";
    
        private static final byte[] CONTEXT_NAME_BYTES = CONTEXT_NAME.getBytes();
        private static final int STRUCTURE_SIZE = 16;
    
        private long reserved; // Must be zero
    
        /**
         * Create a new durable handle request
         */
        public DurableHandleRequest() {
            this.reserved = 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnect.java

         * Context name for durable handle reconnect
         */
        public static final String CONTEXT_NAME = "DHnC";
    
        private static final byte[] CONTEXT_NAME_BYTES = CONTEXT_NAME.getBytes();
        private static final int STRUCTURE_SIZE = 16;
    
        private byte[] fileId; // 16-byte file ID from previous open
    
        /**
         * Create a new durable handle reconnect context
         * @param fileId the 16-byte file ID from the previous open
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/DurableHandleV2Request.java

         * Context name for durable handle V2 request
         */
        public static final String CONTEXT_NAME = "DH2Q";
    
        private static final byte[] CONTEXT_NAME_BYTES = CONTEXT_NAME.getBytes();
        private static final int STRUCTURE_SIZE = 32; // Corrected to 32 bytes as per MS-SMB2
    
        // MS-SMB2: Timeout is specified in 100-nanosecond intervals, but we store in milliseconds
        private long timeoutMs; // timeout in milliseconds (for application use)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. docs/smb3-features/02-persistent-handles-design.md

            writeInt2(buffer, offset + 6, nameLen);  // NameLength
            writeInt2(buffer, offset + 8, 0);  // Reserved
            writeInt2(buffer, offset + 10, STRUCTURE_SIZE);  // DataOffset
            writeInt4(buffer, offset + 12, STRUCTURE_SIZE);  // DataLength
            
            // Name
            System.arraycopy(getName().getBytes(), 0, buffer, offset + 16, nameLen);
            
            // Data (16 bytes of reserved)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
Back to top