MCPcopy Index your code
hub / github.com/OpenTSDB/asynchbase / setShort

Method setShort

src/Bytes.java:118–120  ·  view source on GitHub ↗

Writes a big-endian 2-byte short at the begining of the given array. @param b The array to write to. @param n A short integer. @throws IndexOutOfBoundsException if the byte array is too small.

(final byte[] b, final short n)

Source from the content-addressed store, hash-verified

116 * @throws IndexOutOfBoundsException if the byte array is too small.
117 */
118 public static void setShort(final byte[] b, final short n) {
119 setShort(b, n, 0);
120 }
121
122 /**
123 * Writes a big-endian 2-byte short at an offset in the given array.

Callers 2

fromShortMethod · 0.95
encodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected