Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 232 for readInt4 (0.86 sec)

  1. src/main/java/jcifs/smb1/smb1/ACE.java

        int decode(final byte[] buf, int bi) {
            allow = buf[bi] == (byte) 0x00;
            bi++;
            flags = buf[bi++] & 0xFF;
            final int size = ServerMessageBlock.readInt2(buf, bi);
            bi += 2;
            access = ServerMessageBlock.readInt4(buf, bi);
            bi += 4;
            sid = new SID(buf, bi);
            return size;
        }
    
        void appendCol(final StringBuffer sb, final String str, final int width) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            // Verify structure size (should be 24)
            assertEquals(24, SMBUtil.readInt2(buffer, offset));
    
            // Verify close flags (2 bytes at offset+2, should be 0 by default)
            assertEquals(0, SMBUtil.readInt2(buffer, offset + 2));
    
            // Verify Reserved (4 bytes at offset+4, should be 0)
            assertEquals(0, SMBUtil.readInt4(buffer, offset + 4));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

            assertEquals(TEST_LAST_WRITE_TIME, SMBUtil.readTime(buffer, dstIndex + 16));
            assertEquals(TEST_CHANGE_TIME, SMBUtil.readTime(buffer, dstIndex + 24));
            assertEquals(TEST_ATTRIBUTES, SMBUtil.readInt4(buffer, dstIndex + 32));
        }
    
        @Test
        @DisplayName("Test FileBasicInfo size method")
        void testFileBasicInfoSize() {
            // Given
            FileBasicInfo info = new FileBasicInfo();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

            assertEquals(AvPair.MsvAvFlags, SMBUtil.readInt2(encoded, 0), "First pair type should be MsvAvFlags");
            assertEquals(4, SMBUtil.readInt2(encoded, 2), "First pair length should be 4");
    
            // Check AvFlags data
            assertEquals(0x12345678, SMBUtil.readInt4(encoded, 4), "Flags value should match");
    
            // Check EOL
            assertEquals(AvPair.MsvAvEOL, SMBUtil.readInt2(encoded, 8), "Should end with EOL");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SID.java

            }
            this.sub_authority = new int[this.sub_authority_count];
            for (int i = 0; i < this.sub_authority_count; i++) {
                this.sub_authority[i] = SMBUtil.readInt4(src, si);
                si += 4;
            }
        }
    
        /**
         * Construct a SID from it's textual representation such as
         * {@code S-1-5-21-1496946806-2192648263-3843101252-1029}.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                int initialFlags = 0x00000001;
                SMBUtil.writeInt4(initialFlags, data, 16);
    
                digest.sign(data, 0, data.length, request, response);
    
                int flags = SMBUtil.readInt4(data, 16);
                assertTrue((flags & ServerMessageBlock2.SMB2_FLAGS_SIGNED) != 0, "Signed flag should be set");
            }
    
            @Test
            @DisplayName("Should preserve other flags when setting signed flag")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/netbios/NameServicePacketTest.java

        void testReadInt2() {
            byte[] src = { (byte) 0x12, (byte) 0x34 };
            assertEquals(0x1234, NameServicePacket.readInt2(src, 0));
        }
    
        @Test
        void testReadInt4() {
            byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56, (byte) 0x78 };
            assertEquals(0x12345678, NameServicePacket.readInt4(src, 0));
        }
    
        @Test
        void testReadNameTrnId() {
            byte[] src = { (byte) 0xAB, (byte) 0xCD };
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

            this.errorCode = SMBUtil.readInt4(buffer, bufferIndex + SmbConstants.ERROR_CODE_OFFSET);
            this.flags = buffer[bufferIndex + SmbConstants.FLAGS_OFFSET];
            this.flags2 = SMBUtil.readInt2(buffer, bufferIndex + SmbConstants.FLAGS_OFFSET + 1);
            this.tid = SMBUtil.readInt2(buffer, bufferIndex + SmbConstants.TID_OFFSET);
            this.pid = SMBUtil.readInt2(buffer, bufferIndex + SmbConstants.TID_OFFSET + 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

                int totalLen = testMessage.encode(buffer, 0);
    
                assertTrue(totalLen > testMessage.getLength());
    
                // Check next command offset was written
                int nextOffset = SMBUtil.readInt4(buffer, 20);
                assertTrue(nextOffset > 0);
            }
    
            @Test
            @DisplayName("Should sign chained messages with digest")
            void testEncodeChainedWithDigest() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SID.java

            }
            sub_authority = new int[sub_authority_count];
            for (int i = 0; i < sub_authority_count; i++) {
                sub_authority[i] = ServerMessageBlock.readInt4(src, si);
                si += 4;
            }
        }
    
        /**
         * Construct a SID from it's textual representation such as
         * {@code S-1-5-21-1496946806-2192648263-3843101252-1029}.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
Back to top