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

Method getByteArray

src/main/java/com/jmatio/types/MLInt16.java:145–150  ·  view source on GitHub ↗
(Short value)

Source from the content-addressed store, hash-verified

143 }
144
145 public byte[] getByteArray(Short value) {
146 int byteAllocated = getBytesAllocated();
147 ByteBuffer buff = ByteBuffer.allocate(byteAllocated);
148 buff.putShort(value);
149 return buff.array();
150 }
151
152 public Class<Short> getStorageClazz() {
153 return Short.class;

Callers

nothing calls this directly

Calls 2

getBytesAllocatedMethod · 0.95
allocateMethod · 0.45

Tested by

no test coverage detected