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

Method getByteArray

src/main/java/com/jmatio/types/MLInt32.java:144–149  ·  view source on GitHub ↗
(Integer value)

Source from the content-addressed store, hash-verified

142 }
143
144 public byte[] getByteArray(Integer value) {
145 int byteAllocated = getBytesAllocated();
146 ByteBuffer buff = ByteBuffer.allocate(byteAllocated);
147 buff.putInt(value);
148 return buff.array();
149 }
150
151 @Override
152 protected Integer zero() {

Callers

nothing calls this directly

Calls 2

getBytesAllocatedMethod · 0.95
allocateMethod · 0.45

Tested by

no test coverage detected