MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / getUnsignedShort

Method getUnsignedShort

src/Bytes.java:96–98  ·  view source on GitHub ↗

Reads a big-endian 2-byte unsigned short from the begining of the given array. @param b The array to read from. @return A positive short integer. @throws IndexOutOfBoundsException if the byte array is too small.

(final byte[] b)

Source from the content-addressed store, hash-verified

94 * @throws IndexOutOfBoundsException if the byte array is too small.
95 */
96 public static int getUnsignedShort(final byte[] b) {
97 return getUnsignedShort(b, 0);
98 }
99
100 /**
101 * Reads a big-endian 2-byte unsigned short from an offset in the

Callers

nothing calls this directly

Calls 1

getShortMethod · 0.95

Tested by

no test coverage detected