Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for readShort (0.23 sec)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt

        }
    
        val questionCount = buf.readShort().toInt() and 0xffff
        val answerCount = buf.readShort().toInt() and 0xffff
        buf.readShort() // authority record count
        buf.readShort() // additional record count
    
        for (i in 0 until questionCount) {
          skipName(buf) // name
          buf.readShort() // type
          buf.readShort() // class
        }
    
        for (i in 0 until answerCount) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/ByteArrayDataInput.java

      @Override
      byte readByte();
    
      @CanIgnoreReturnValue // to skip a byte
      @Override
      int readUnsignedByte();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      short readShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readUnsignedShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      char readChar();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/SocksProxy.kt

                else -> InetAddress.getByName(domainName)
              }
            }
    
            else -> throw ProtocolException("unsupported address type: $addressType")
          }
    
        val port = fromSource.readShort() and 0xffff
    
        when (command) {
          COMMAND_CONNECT -> {
            val toSocket = Socket(toAddress, port)
            val localAddress = toSocket.localAddress.address
            if (localAddress.size != 4) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

       * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, except using
       * little-endian byte order.
       *
       * @return the next two bytes of the input stream, interpreted as a {@code short} in little-endian
       *     byte order.
       * @throws IOException if an I/O error occurs.
       */
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      public short readShort() throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        // Get frame length, optionally reading from follow-up bytes if indicated by special values.
        frameLength = (b1 and B1_MASK_LENGTH).toLong()
        if (frameLength == PAYLOAD_SHORT.toLong()) {
          frameLength = (source.readShort() and 0xffff).toLong() // Value is unsigned.
        } else if (frameLength == PAYLOAD_LONG.toLong()) {
          frameLength = source.readLong()
          if (frameLength < 0L) {
            throw ProtocolException(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  6. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top