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

Method wrap

src/Bytes.java:297–299  ·  view source on GitHub ↗

Wraps a byte array in a ByteString without copying it. @param array A byte array that must be considered read-only from there on. @since 1.5

(final byte[] array)

Source from the content-addressed store, hash-verified

295 * @since 1.5
296 */
297 public static ByteString wrap(final byte[] array) {
298 return ZeroCopyLiteralByteString.wrap(array);
299 }
300
301 /**
302 * Extracts the byte array from the given {@link ByteString} without copy.

Callers 15

kvToCellMethod · 0.95
buildGoodResponseMethod · 0.95
serializeMethod · 0.95
serializeMethod · 0.95
toProtobufMethod · 0.95
toMutationProtoMethod · 0.95
getPBMethod · 0.95
toProtobufMethod · 0.95
RegionClientClass · 0.95
serializeMethod · 0.95
encodeMethod · 0.95
toProtobufMethod · 0.95

Calls 1

wrapMethod · 0.95

Tested by 2

kvToCellMethod · 0.76
buildGoodResponseMethod · 0.76