Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 114 for 0x00FF (0.16 sec)

  1. src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java

                // Since FLAGS2_RESOLVE_PATHS_IN_DFS is 0x1000, when cast to byte it becomes 0
                // Therefore the method will always return false unless flags has all 0x00 bits set
                // This test verifies actual behavior
                testBlock.setFlags((byte) 0x00);
                assertFalse(testBlock.isResolveInDfs());
    
                // The correct implementation should check flags2, not flags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/nego/Smb2RdmaTransformCapabilitiesContext.java

            return transformCount > 0 && rdmaTransformId == 0x0001;
        }
    
        /**
         * Get the transform count
         *
         * @return number of transforms
         */
        public int getTransformCount() {
            return transformCount;
        }
    
        /**
         * Get the RDMA transform ID
         *
         * @return transform ID (should be 0x0001 for V1)
         */
        public int getRdmaTransformId() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/NetShareEnum.java

            }
    
            writeInt2(NET_SHARE_ENUM, dst, dstIndex);
            dstIndex += 2;
            System.arraycopy(descr, 0, dst, dstIndex, descr.length);
            dstIndex += descr.length;
            writeInt2(0x0001, dst, dstIndex);
            dstIndex += 2;
            writeInt2(maxDataCount, dst, dstIndex);
            dstIndex += 2;
    
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

        void testConstructorWithConfigOnly() {
            request = new Smb2QueryInfoRequest(mockConfig);
    
            assertNotNull(request);
            // SMB2_QUERY_INFO command value is 0x0010
            assertEquals((short) 0x0010, request.getCommand());
    
            // Verify that default file ID is set
            byte[] expectedFileId = Smb2Constants.UNSPECIFIED_FILEID;
            Field fileIdField;
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

            ByteBuffer bb = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN);
            bb.putShort((short) fid);
            bb.put((byte) 0x00); // Reserved
            bb.put((byte) 0x00); // Reserved
            bb.putInt(securityInformation);
            return bb.array();
        }
    
        /**
         * Provide a range of values that are valid for the constructor.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            assertArrayEquals(expectedDescrBytes, actualDescrBytes);
    
            // Verify level (0x0001 - 2 bytes)
            int descrEnd = 2 + expectedDescrBytes.length;
            assertEquals(0x01, dst[descrEnd]);
            assertEquals(0x00, dst[descrEnd + 1]);
    
            // Verify maxDataCount (2 bytes)
            int maxDataCount = SMBUtil.readInt2(dst, descrEnd + 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            // Mark as server->client response for realism
            SMBUtil.writeInt4(0x00000001, header, 16); // Flags
            // Command SMB2_CREATE (0x0005)
            SMBUtil.writeInt2(0x0005, header, 12);
            // Some message id
            SMBUtil.writeInt8(1L, header, 24);
            return header;
        }
    
        /**
         * Build a basic CREATE response body without create contexts.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java

            System.arraycopy(dst, 2, writtenDescr, 0, descr.length);
            assertArrayEquals(descr, writtenDescr);
    
            int currentIndex = 2 + descr.length;
            // Verify level (0x0001)
            assertEquals(1, (dst[currentIndex] & 0xFF) | ((dst[currentIndex + 1] & 0xFF) << 8));
            currentIndex += 2;
    
            // Verify maxDataCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        void testConstructor() throws Exception {
            // Verify command is set correctly (SMB2_FLUSH = 0x0007)
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(request);
            assertEquals(0x0007, command); // SMB2_FLUSH value
    
            // Verify file ID is set
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            // Write Status (little-endian) at offset 8 in the SMB2 header
            SMBUtil.writeInt4(status, hdr, 8);
            // Write Command = SMB2_IOCTL (0x000B) at offset 12
            SMBUtil.writeInt2(0x000B, hdr, 12);
            // Mark as server response to be realistic (optional)
            SMBUtil.writeInt4(0x00000001, hdr, 16); // Flags = SMB2_FLAGS_SERVER_TO_REDIR
            return hdr;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top