Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for readShort (0.2 sec)

  1. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        assertEquals(100, in.readByte());
        assertEquals(-100, in.readByte());
        assertEquals(200, in.readUnsignedByte());
        assertEquals('\u6100', in.readChar());
        assertEquals(-12150, in.readShort());
        assertEquals(20675, in.readUnsignedShort());
        assertEquals(0xBEBAFECA, in.readInt());
        assertEquals(0xBEBAFECAEFBEADDEL, in.readLong());
        assertEquals("Herby Derby", in.readUTF());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteStreams.java

          try {
            return input.readUnsignedByte();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public short readShort() {
          try {
            return input.readShort();
          } catch (IOException e) {
            throw new IllegalStateException(e);
          }
        }
    
        @Override
        public int readUnsignedShort() {
          try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        public final int readUnsignedByte() throws SmbException {
            if((read( tmp, 0, 1 )) < 0 ) {
                throw new SmbException( "EOF" );
            }
            return tmp[0] & 0xFF;
        }
        public final short readShort() throws SmbException {
            if((read( tmp, 0, 2 )) < 0 ) {
                throw new SmbException( "EOF" );
            }
            return Encdec.dec_uint16be( tmp, 0 );
        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            if ( ( read(this.tmp, 0, 1) ) < 0 ) {
                throw new SmbEndOfFileException();
            }
            return this.tmp[ 0 ] & 0xFF;
        }
    
    
        @Override
        public final short readShort () throws SmbException {
            if ( ( read(this.tmp, 0, 2) ) < 0 ) {
                throw new SmbEndOfFileException();
            }
            return Encdec.dec_uint16be(this.tmp, 0);
        }
    
    
        @Override
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/InetAddresses.java

        Inet4Address server = getInet4Address(Arrays.copyOfRange(bytes, 4, 8));
    
        int flags = ByteStreams.newDataInput(bytes, 8).readShort() & 0xffff;
    
        // Teredo obfuscates the mapped client port, per section 4 of the RFC.
        int port = ~ByteStreams.newDataInput(bytes, 10).readShort() & 0xffff;
    
        byte[] clientBytes = Arrays.copyOfRange(bytes, 12, 16);
        for (int i = 0; i < clientBytes.length; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

          return
        }
    
        if (length % 6 != 0) throw IOException("TYPE_SETTINGS length % 6 != 0: $length")
        val settings = Settings()
        for (i in 0 until length step 6) {
          var id = source.readShort() and 0xffff
          val value = source.readInt()
    
          when (id) {
            // SETTINGS_HEADER_TABLE_SIZE
            1 -> {
            }
    
            // SETTINGS_ENABLE_PUSH
            2 -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  7. okhttp-android/src/main/baseline-prof.txt

    HSPLokio/Buffer;->readByteArray(J)[B
    HSPLokio/Buffer;->readByteString()Lokio/ByteString;
    HSPLokio/Buffer;->readByteString(J)Lokio/ByteString;
    HSPLokio/Buffer;->readInt()I
    HSPLokio/Buffer;->readIntLe()I
    HSPLokio/Buffer;->readShort()S
    HSPLokio/Buffer;->readString(JLjava/nio/charset/Charset;)Ljava/lang/String;
    HSPLokio/Buffer;->readString(Ljava/nio/charset/Charset;)Ljava/lang/String;
    HSPLokio/Buffer;->skip(J)V
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/ntlmssp/NtlmMessage.java

                    ((src[index + 2] & 0xff) << 16) |
                    ((src[index + 3] & 0xff) << 24);
        }
    
        static int readUShort(byte[] src, int index) {
            return (src[index] & 0xff) | ((src[index + 1] & 0xff) << 8);
        }
    
        static byte[] readSecurityBuffer(byte[] src, int index) {
            int length = readUShort(src, index);
            int offset = readULong(src, index + 4);
            byte[] buffer = new byte[length];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 4.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/NtlmMessage.java

                    | ( ( src[ index + 3 ] & 0xff ) << 24 );
        }
    
    
        static int readUShort ( byte[] src, int index ) {
            return ( src[ index ] & 0xff ) | ( ( src[ index + 1 ] & 0xff ) << 8 );
        }
    
    
        static byte[] readSecurityBuffer ( byte[] src, int index ) {
            int length = readUShort(src, index);
            int offset = readULong(src, index + 4);
            byte[] buffer = new byte[length];
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 5.1K bytes
    - Viewed (0)
Back to top