Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for newDataInput (0.11 seconds)

  1. android/guava/src/com/google/common/io/ByteStreams.java

      /**
       * Returns a new {@link ByteArrayDataInput} instance to read from the {@code bytes} array from the
       * beginning.
       */
      @J2ktIncompatible
      public static ByteArrayDataInput newDataInput(byte[] bytes) {
        return newDataInput(new ByteArrayInputStream(bytes));
      }
    
      /**
       * Returns a new {@link ByteArrayDataInput} instance to read from the {@code bytes} array,
       * starting at the given position.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 31.1K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteArrayDataInput in = ByteStreams.newDataInput(data);
        assertEquals(0x1234567876543210L, in.readLong());
      }
    
      public void testNewDataInput_readBoolean() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        assertTrue(in.readBoolean());
      }
    
      public void testNewDataInput_readByte() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        for (byte aByte : bytes) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        ByteArrayDataInput in = ByteStreams.newDataInput(data);
        assertEquals(0x1234567876543210L, in.readLong());
      }
    
      public void testNewDataInput_readBoolean() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        assertTrue(in.readBoolean());
      }
    
      public void testNewDataInput_readByte() {
        ByteArrayDataInput in = ByteStreams.newDataInput(bytes);
        for (byte aByte : bytes) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/net/InetAddresses.java

        byte[] bytes = ip.getAddress();
        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++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
Back to Top