Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sidBytes (0.22 sec)

  1. src/main/java/jcifs/pac/PacDataInputStream.java

            readFully(bytes);
    
            final byte[] sidBytes = new byte[8 + bytes.length];
            sidBytes[0] = 1;
            sidBytes[1] = (byte) (bytes.length / 4);
            System.arraycopy(new byte[] { 0, 0, 0, 0, 0, 5 }, 0, sidBytes, 2, 6);
            System.arraycopy(bytes, 0, sidBytes, 8, bytes.length);
    
            return new SID(sidBytes, 0);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacLogonInfoTest.java

            SID id = pacStream.readId();
            assertNotNull(id);
            // The RID should be incorporated into the SID
            byte[] sidBytes = id.toByteArray();
            assertTrue(sidBytes.length > 0);
        }
    
        @Test
        @DisplayName("Test PacDataInputStream readString method")
        void testReadString() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

        void toString_containsExpected() {
            when(cfg.isTraceResourceUsage()).thenReturn(false);
            stubValidTree(1L, true, true);
    
            byte[] fidBytes = new byte[] { 0x01, 0x02 };
            SmbFileHandleImpl h1 = new SmbFileHandleImpl(cfg, fidBytes, tree, "//u/one", 0x10, 0x20, 0x30, 0x40, 0L);
            String s1 = h1.toString();
            assertTrue(s1.contains("//u/one"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
Back to top