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

Method getByteArray

src/main/java/com/jmatio/types/MLDouble.java:146–151  ·  view source on GitHub ↗
(Double value)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

getBytesAllocatedMethod · 0.95
allocateMethod · 0.45

Tested by

no test coverage detected