Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,352 for 1byte (0.31 sec)

  1. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            buffer.position(20);
            buffer.put((byte) 0x01); // Revision
            buffer.put((byte) 0x01); // SubAuthorityCount
            buffer.put(new byte[] { 0, 0, 0, 0, 0, 1 }); // IdentifierAuthority
            buffer.putInt(0); // SubAuthority
    
            // Group SID at offset 40
            buffer.position(40);
            buffer.put((byte) 0x01); // Revision
            buffer.put((byte) 0x01); // SubAuthorityCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                this.andxCommand = (byte) 0xFF;
                this.andx = null;
    
                dst[start + ANDX_COMMAND_OFFSET] = (byte) 0xFF;
                dst[start + ANDX_RESERVED_OFFSET] = (byte) 0x00;
                // dst[start + ANDX_OFFSET_OFFSET] = (byte)0x00;
                // dst[start + ANDX_OFFSET_OFFSET + 1] = (byte)0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

        void testEncode() {
            byte[] buffer = new byte[1024];
            int length = response.encode(buffer, 0);
            assertTrue(length >= 0);
        }
    
        @Test
        @DisplayName("Test decode operation")
        void testDecode() {
            byte[] buffer = new byte[1024];
            // Fill with basic SMB header structure
            System.arraycopy(new byte[] { (byte) 0xFF, 'S', 'M', 'B' }, 0, buffer, 0, 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/Type2Message.java

        private byte[] challenge;
        private String target;
        private byte[] context;
        private byte[] targetInformation;
    
        private static final Map<String, byte[]> TARGET_INFO_CACHE = new HashMap<>();
    
        private static byte[] getDefaultTargetInfo(final CIFSContext tc) {
            final String domain = tc.getConfig().getDefaultDomain();
            byte[] ti = TARGET_INFO_CACHE.get(domain);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2FlushResponseTest.java

            void testReadBytesWireFormatNegativeAsUnsigned() {
                // Given
                byte[] buffer = new byte[10];
                // Write -1 which will be read as 65535 unsigned
                buffer[0] = (byte) 0xFF;
                buffer[1] = (byte) 0xFF;
    
                // When & Then
                SMBProtocolDecodingException exception =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        int b = in.read();
        assertEquals('y', b);
    
        verify(hasher).putByte((byte) 'y');
        verify(hashFunction).newHasher();
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testRead_putByteArray() throws Exception {
        HashingInputStream in = new HashingInputStream(hashFunction, buffer);
    
        byte[] buf = new byte[4];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(4, numOfByteRead);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        int b = in.read();
        assertEquals('y', b);
    
        verify(hasher).putByte((byte) 'y');
        verify(hashFunction).newHasher();
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testRead_putByteArray() throws Exception {
        HashingInputStream in = new HashingInputStream(hashFunction, buffer);
    
        byte[] buf = new byte[4];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(4, numOfByteRead);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/BufferCacheImplTest.java

            byte[] a = new byte[1];
            byte[] c = new byte[2];
            byte[] d = new byte[4];
    
            impl.releaseBuffer(a); // goes to slot 0
            impl.releaseBuffer(c); // goes to slot 1
            impl.releaseBuffer(d); // dropped (cache full)
    
            byte[] first = impl.getBuffer(); // should return slot 0 -> a
            byte[] second = impl.getBuffer(); // then slot 1 -> c
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComReadAndXResponse.java

            super(config);
            this.data = b;
            this.offset = off;
        }
    
        void setParam(final byte[] b, final int off) {
            this.data = b;
            this.offset = off;
        }
    
        /**
         * Gets the read data buffer.
         *
         * @return the read data
         */
        public final byte[] getData() {
            return this.data;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java

            assertEquals(1, response.setupCount);
        }
    
        // Helper method to write a 4-byte integer to a byte array.
        private void writeInt4(int val, byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) val;
            dst[dstIndex + 1] = (byte) (val >> 8);
            dst[dstIndex + 2] = (byte) (val >> 16);
            dst[dstIndex + 3] = (byte) (val >> 24);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top