Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 315 for structure (0.06 sec)

  1. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

            assertEquals(0, bytesWritten);
        }
    
        @Test
        @DisplayName("Should read valid structure from wire format")
        void testReadBytesWireFormatValidStructure() throws SMBProtocolDecodingException {
            // Given
            byte[] buffer = new byte[256];
            int offset = 10;
    
            // Write structure size (4) at offset
            SMBUtil.writeInt2(4, buffer, offset);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/msrpc/netdfs.java

        /**
         * DFS storage state indicating active status
         */
        public static final int DFS_STORAGE_STATE_ACTIVE = 0x0004;
    
        /**
         * DFS information level 1 structure containing basic DFS entry information
         */
        public static class DfsInfo1 extends NdrObject {
    
            /**
             * Default constructor for DfsInfo1
             */
            public DfsInfo1() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

        @Test
        @DisplayName("Test readBytesWireFormat with valid structure size")
        void testReadBytesWireFormatValidStructureSize() throws Exception {
            response = new Smb2QueryDirectoryResponse(mockConfig, Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO);
    
            byte[] buffer = new byte[512];
            int bufferIndex = 0;
    
            // Set structure size to 9 (valid)
            SMBUtil.writeInt2(9, buffer, bufferIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/rpc.java

    package jcifs.dcerpc;
    
    import jcifs.dcerpc.ndr.NdrBuffer;
    import jcifs.dcerpc.ndr.NdrException;
    import jcifs.dcerpc.ndr.NdrObject;
    
    /**
     * RPC data structure definitions for DCE/RPC protocol support.
     * This class contains NDR (Network Data Representation) encodable/decodable structures
     * used in DCE/RPC communications including UUID, policy handles, unicode strings, and SIDs.
     */
    @SuppressWarnings("all")
    public class rpc {
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java

        /**
         * DFS storage state indicating active status
         */
        public static final int DFS_STORAGE_STATE_ACTIVE = 0x0004;
    
        /**
         * DFS information level 1 structure containing basic DFS entry information
         */
        public static class DfsInfo1 extends NdrObject {
    
            /**
             * Default constructor for DfsInfo1
             */
            public DfsInfo1() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            byte[] buffer = new byte[512];
            int offset = 0;
    
            // Set header start position for the response
            setHeaderStart(response, 64);
    
            // Write structure header (9 bytes)
            SMBUtil.writeInt2(9, buffer, offset); // Structure size
            SMBUtil.writeInt2(80 - 64, buffer, offset + 2); // Buffer offset (relative to header)
            SMBUtil.writeInt4(50, buffer, offset + 4); // Total length of notification data
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            assertEquals("Expected structureSize = 2", exception.getMessage());
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with zero structure size throws exception")
        void testReadBytesWireFormatZeroStructureSize() {
            byte[] buffer = new byte[1024];
            int bufferIndex = 0;
    
            // Set structure size to 0 (invalid)
    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/info/Smb2QueryInfoResponseTest.java

        @DisplayName("Test readBytesWireFormat with valid structure size")
        void testReadBytesWireFormatValidStructureSize() throws Exception {
            response = new Smb2QueryInfoResponse(mockConfig, Smb2Constants.SMB2_0_INFO_FILE, FileInformation.FILE_INTERNAL_INFO);
    
            byte[] buffer = new byte[1024];
            int bufferIndex = 100; // Start at non-zero index
    
            // Set structure size to 9 (valid)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java

            byte[] pathBytes = TEST_PATH.getBytes(StandardCharsets.UTF_16LE);
    
            // Verify structure size (9)
            assertEquals(9, SMBUtil.readInt2(buffer, bodyOffset));
    
            // Verify tree flags (0)
            assertEquals(0, SMBUtil.readInt2(buffer, bodyOffset + 2));
    
            // Verify path offset (points to after the 8-byte structure)
            int expectedPathOffset = bodyOffset + 8 - headerStart;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/rdma/Smb2RdmaTransform.java

     */
    package jcifs.internal.smb2.rdma;
    
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 RDMA Transform structure for READ/WRITE channel info.
     *
     * As per MS-SMB2 2.2.13.1.1 and 2.2.21.1.1
     */
    public class Smb2RdmaTransform {
    
        // SMB_DIRECT_BUFFER_DESCRIPTOR_V1 structure
        private long offset; // 8 bytes: Offset within registered buffer
        private int token; // 4 bytes: RDMA provider token
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top