MCPcopy Create free account
hub / github.com/antlr/codebuff / fromBytes

Method fromBytes

output/java_guava/1.4.18/Ints.java:345–348  ·  view source on GitHub ↗

Returns the int value whose byte representation is the given 4 bytes, in big-endian order; equivalent to Ints.fromByteArray(new byte[] {b1, b2, b3, b4)}. @since 7.0

(byte b1, byte b2, byte b3, byte b4)

Source from the content-addressed store, hash-verified

343 */
344
345 @GwtIncompatible // doesn't work
346 public static int fromBytes(byte b1, byte b2, byte b3, byte b4) {
347 return b1 << 24 | (b2 & 0xFF) << 16 | (b3 & 0xFF) << 8 | (b4 & 0xFF);
348 }
349
350 private static final class IntConverter extends Converter<String, Integer> implements Serializable {
351 static final IntConverter INSTANCE = new IntConverter();

Callers 4

fromByteArrayMethod · 0.95
readUnsignedShortMethod · 0.95
readIntMethod · 0.95
toAddrStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected