Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 228 for readInt2 (0.07 sec)

  1. src/main/java/jcifs/smb1/netbios/NameQueryResponse.java

                return 0;
            }
            final boolean groupName = ((src[srcIndex] & 0x80) == 0x80) == true;
            final int nodeType = (src[srcIndex] & 0x60) >> 5;
            srcIndex += 2;
            final int address = readInt4(src, srcIndex);
            if (address != 0) {
                addrEntry[addrIndex] = new NbtAddress(recordName, address, groupName, nodeType);
            } else {
                addrEntry[addrIndex] = null;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/fscc/FileBasicInfo.java

            this.lastWriteTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.changeTime = SMBUtil.readTime(buffer, bufferIndex);
            bufferIndex += 8;
            this.attributes = SMBUtil.readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            return bufferIndex - start;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#size()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

                for (int i = 0; i < SIGNATURE_LENGTH; i++) {
                    data[index + i] = 0;
                }
    
                // set signed flag
                final int oldFlags = SMBUtil.readInt4(data, offset + 16);
                final int flags = oldFlags | ServerMessageBlock2.SMB2_FLAGS_SIGNED;
                SMBUtil.writeInt4(flags, data, offset + 16);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/PacSignature.java

            try {
                final PacDataInputStream bufferStream = new PacDataInputStream(new DataInputStream(new ByteArrayInputStream(data)));
                this.type = bufferStream.readInt();
                switch (this.type) {
                case KERB_CHECKSUM_HMAC_MD5:
                    this.checksum = new byte[16];
                    break;
                case HMAC_SHA1_96_AES128:
                case HMAC_SHA1_96_AES256:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/fscc/FileEndOfFileInformation.java

         * @see jcifs.Decodable#decode(byte[], int, int)
         */
        @Override
        public int decode(final byte[] buffer, final int bufferIndex, final int len) throws SMBProtocolDecodingException {
            this.endOfFile = SMBUtil.readInt8(buffer, bufferIndex);
            return 8;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#size()
         */
        @Override
        public int size() {
            return 8;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/fscc/FileInternalInfo.java

         * @see jcifs.Decodable#decode(byte[], int, int)
         */
        @Override
        public int decode(final byte[] buffer, final int bufferIndex, final int len) throws SMBProtocolDecodingException {
            this.indexNumber = SMBUtil.readInt8(buffer, bufferIndex);
            return 8;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#size()
         */
        @Override
        public int size() {
            return 8;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponse.java

            }
    
            this.resumeKey = new byte[24];
            System.arraycopy(buffer, bufferIndex, this.resumeKey, 0, 24);
            bufferIndex += 24;
    
            SMBUtil.readInt4(buffer, bufferIndex); // contextLength - reserved
            bufferIndex += 4;
    
            return bufferIndex - start;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/netbios/NameQueryResponse.java

                return 0;
            }
            final boolean groupName = ((src[srcIndex] & 0x80) == 0x80) == true;
            final int nodeType = (src[srcIndex] & 0x60) >> 5;
            srcIndex += 2;
            final int address = readInt4(src, srcIndex);
            if (address != 0) {
                this.addrEntry[this.addrIndex] = new NbtAddress(this.recordName, address, groupName, nodeType);
            } else {
                this.addrEntry[this.addrIndex] = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

          ),
        )
      }
    
      @Test
      fun readSingleByteInt() {
        assertThat(newReader(byteStream()).readInt(10, 31)).isEqualTo(10)
        assertThat(newReader(byteStream()).readInt(0xe0 or 10, 31)).isEqualTo(10)
      }
    
      @Test
      fun readMultibyteInt() {
        assertThat(newReader(byteStream(154, 10)).readInt(31, 31)).isEqualTo(1337)
      }
    
      @Test
      fun writeSingleByteInt() {
        hpackWriter!!.writeInt(10, 31, 0)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmContext.java

            }
    
            final int ver = SMBUtil.readInt4(mic, 0);
            if (ver != 1) {
                throw new SmbUnsupportedOperationException("Invalid signature version");
            }
    
            final MessageDigest mac = Crypto.getHMACT64(sk);
            final int seq = SMBUtil.readInt4(mic, 12);
            mac.update(mic, 12, 4); // sequence
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
Back to top