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

Method fromLong

src/Bytes.java:286–290  ·  view source on GitHub ↗

Creates a new byte array containing a big-endian 8-byte long integer. @param n A long integer. @return A new byte array containing the given value.

(final long n)

Source from the content-addressed store, hash-verified

284 * @return A new byte array containing the given value.
285 */
286 public static byte[] fromLong(final long n) {
287 final byte[] b = new byte[8];
288 setLong(b, n);
289 return b;
290 }
291
292 /**
293 * Wraps a byte array in a {@link ByteString} without copying it.

Callers 3

metaRegionInfoMethod · 0.95
serializeMethod · 0.95
serializeMethod · 0.95

Calls 1

setLongMethod · 0.95

Tested by 1

metaRegionInfoMethod · 0.76