MCPcopy Create free account
hub / github.com/apache/storm / toByteArray

Method toByteArray

storm-client/src/jvm/org/apache/storm/utils/Utils.java:866–870  ·  view source on GitHub ↗
(ByteBuffer buffer)

Source from the content-addressed store, hash-verified

864 }
865
866 public static byte[] toByteArray(ByteBuffer buffer) {
867 byte[] ret = new byte[buffer.remaining()];
868 buffer.get(ret, 0, ret.length);
869 return ret;
870 }
871
872 public static Runnable mkSuicideFn() {
873 return new Runnable() {

Callers 15

deserializeMethod · 0.95
deserializeMethod · 0.95
serializeMethod · 0.80
writeMethod · 0.80
serializeSSLFileMethod · 0.80
javaSerializeMethod · 0.80
gzipMethod · 0.80
gunzipMethod · 0.80
toCompressedJsonConfMethod · 0.80

Calls 1

getMethod · 0.65

Tested by 3

getResourceAsBytesMethod · 0.64
getResourceAsBytesMethod · 0.64
testSerializabilityMethod · 0.64