- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for newDataInput (0.04 sec)
-
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) -
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) -
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)