Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 467 for readInt (0.21 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

        }
        val padding = if (flags and FLAG_PADDED != 0) source.readByte() and 0xff else 0
        val promisedStreamId = source.readInt() and 0x7fffffff
        val headerBlockLength = lengthWithoutPadding(length - 4, flags, padding) // - 4 for readInt().
        val headerBlock = readHeaderBlock(headerBlockLength, padding, flags, streamId)
        handler.pushPromise(streamId, promisedStreamId, headerBlock)
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Serialization.java

        for (int i = 0; i < distinctKeys; i++) {
          @SuppressWarnings("unchecked") // reading data stored by writeMultimap
          K key = (K) stream.readObject();
          Collection<V> values = multimap.get(key);
          int valueCount = stream.readInt();
          for (int j = 0; j < valueCount; j++) {
            @SuppressWarnings("unchecked") // reading data stored by writeMultimap
            V value = (V) stream.readObject();
            values.add(value);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/PacLogonInfo.java

                SID groupId = pacStream.readId();
    
                // Groups information
                int groupCount = pacStream.readInt();
                int groupPointer = pacStream.readInt();
    
                // User flags about PAC Logon Info content
                this.userFlags = pacStream.readInt();
                boolean hasExtraSids = ( this.userFlags & PacConstants.LOGON_EXTRA_SIDS ) == PacConstants.LOGON_EXTRA_SIDS;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 11.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/PacDataInputStream.java

        }
    
    
        public short readShort () throws IOException {
            align(2);
            return Short.reverseBytes(this.dis.readShort());
        }
    
    
        public int readInt () throws IOException {
            align(4);
            return Integer.reverseBytes(this.dis.readInt());
        }
    
    
        public long readLong () throws IOException {
            align(8);
            return Long.reverseBytes(this.dis.readLong());
        }
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sat Jul 21 21:19:58 GMT 2018
    - 5.1K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
      public void testNewDataInput_normal() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        assertEquals(0x12345678, in.readInt());
        assertEquals(0x76543210, in.readInt());
        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
      public void testNewDataInput_readFully() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
      public void testNewDataInput_normal() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        assertEquals(0x12345678, in.readInt());
        assertEquals(0x76543210, in.readInt());
        assertThrows(IllegalStateException.class, () -> in.readInt());
      }
    
      public void testNewDataInput_readFully() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/pac/Pac.java

                int bufferCount = pacStream.readInt();
                int version = pacStream.readInt();
    
                if ( version != PacConstants.PAC_VERSION ) {
                    throw new PACDecodingException("Unrecognized PAC version " + version);
                }
    
                for ( int bufferIndex = 0; bufferIndex < bufferCount; bufferIndex++ ) {
                    int bufferType = pacStream.readInt();
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

                  // 1NNNNNNN
                  val index = readInt(b, PREFIX_7_BITS)
                  readIndexedHeader(index - 1)
                }
                b == 0x40 -> {
                  // 01000000
                  readLiteralHeaderWithIncrementalIndexingNewName()
                }
                b and 0x40 == 0x40 -> {
                  // 01NNNNNN
                  val index = readInt(b, PREFIX_6_BITS)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
  9. okhttp/src/test/java/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)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

       * Reads an integer as specified by {@link DataInputStream#readInt()}, except using little-endian
       * byte order.
       *
       * @return the next four bytes of the input stream, interpreted as an {@code int} in little-endian
       *     byte order
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      public int readInt() throws IOException {
        byte b1 = readAndCheckByte();
    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)
Back to top