Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,352 for BYTE (0.03 sec)

  1. src/main/java/jcifs/util/ByteEncodable.java

    /**
     * Interface for objects that can be encoded to byte arrays.
     * Provides standardized method for converting objects to their binary representation.
     *
     * @author mbechler
     */
    public class ByteEncodable implements Encodable {
    
        private final byte[] bytes;
        private final int off;
        private final int len;
    
        /**
         * Constructs a ByteEncodable object wrapping a byte array segment.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

            private int dataWireFormatReturn = 0;
            private byte[] setupBuffer;
            private byte[] parametersBuffer;
            private byte[] dataBuffer;
    
            public TestSmbComTransaction(Configuration config, byte command, byte subCommand) {
                super(config, command, subCommand);
            }
    
            @Override
            protected int writeSetupWireFormat(byte[] dst, int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/util/HMACT64Test.java

    class HMACT64Test {
    
        private static final byte[] TEST_KEY = "testkey".getBytes();
        private static final byte[] LONG_TEST_KEY = new byte[80]; // Longer than 64 bytes
        private static final byte[] SHORT_TEST_KEY = "short".getBytes();
        private static final byte[] TEST_DATA = "testdata".getBytes();
        private static final byte[] EMPTY_DATA = new byte[0];
    
        static {
            // Initialize long key with predictable data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/hash/HashCode.java

        public int bits() {
          return 64;
        }
    
        @Override
        public byte[] asBytes() {
          return new byte[] {
            (byte) hash,
            (byte) (hash >> 8),
            (byte) (hash >> 16),
            (byte) (hash >> 24),
            (byte) (hash >> 32),
            (byte) (hash >> 40),
            (byte) (hash >> 48),
            (byte) (hash >> 56)
          };
        }
    
        @Override
        public int asInt() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDesc.java

            this.maxDataCount = 65536;
            this.maxSetupCount = (byte) 0x00;
        }
    
        @Override
        public int getPadding() {
            return 4;
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        protected int writeParametersWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/compression/CompressionService.java

         *
         * @param data the data to compress
         * @param algorithm the compression algorithm to use
         * @return the compressed data
         * @throws CIFSException if compression fails
         */
        byte[] compress(byte[] data, int algorithm) throws CIFSException;
    
        /**
         * Compresses data using the specified algorithm with offset and length.
         *
         * @param data the data buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                request.setPadding((byte) 4);
                request.setReadFlags((byte) 0x02);
    
                // Update file ID
                byte[] newFileId = new byte[16];
                Arrays.fill(newFileId, (byte) 0xEF);
                request.setFileId(newFileId);
    
                // Write and verify
                byte[] buffer = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

            for (int i = 0; i < 24; i++) {
                assertEquals((byte) 0xAA, resumeKey[i], "Resume key byte " + i + " should be 0xAA");
            }
        }
    
        @Test
        @DisplayName("Test decode throws exception when length is too short")
        void testDecodeThrowsExceptionWhenLengthTooShort() {
            byte[] buffer = new byte[28];
    
            // Test with len = 23 (one byte too short)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

        @Override
        public byte[] compress(byte[] data, int algorithm) throws CIFSException {
            if (data == null) {
                throw new CIFSException("Data cannot be null");
            }
            return compress(data, 0, data.length, algorithm);
        }
    
        @Override
        public byte[] compress(byte[] data, int offset, int length, int algorithm) throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

        @Test
        @DisplayName("Test decode method integration")
        void testDecodeMethodIntegration() throws Exception {
            byte[] buffer = new byte[1024];
            int bufferIndex = 0;
    
            // Prepare SMB2 header (64 bytes)
            // Protocol ID
            System.arraycopy(new byte[] { (byte) 0xFE, 'S', 'M', 'B' }, 0, buffer, bufferIndex, 4);
            // Header length
            SMBUtil.writeInt2(64, buffer, bufferIndex + 4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top