Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newDataInput (0.04 sec)

  1. 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.
       *
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-03-20 20:55
    - 31.1K bytes
    - Viewed (0)
  2. 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++) {
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-02-19 21:24
    - 47.4K bytes
    - Viewed (0)
  3. 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++) {
    Registered: 2025-05-30 12:43
    - Last Modified: 2025-02-19 21:24
    - 47.4K bytes
    - Viewed (0)
Back to top