MCPcopy Create free account
hub / github.com/diffplug/matfilerw / getByteArray

Method getByteArray

src/main/java/com/jmatio/types/MLInt64.java:149–154  ·  view source on GitHub ↗
(Long value)

Source from the content-addressed store, hash-verified

147 }
148
149 public byte[] getByteArray(Long value) {
150 int byteAllocated = getBytesAllocated();
151 ByteBuffer buff = ByteBuffer.allocate(byteAllocated);
152 buff.putLong(value);
153 return buff.array();
154 }
155
156 @Override
157 protected Long zero() {

Callers

nothing calls this directly

Calls 2

getBytesAllocatedMethod · 0.95
allocateMethod · 0.45

Tested by

no test coverage detected