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

Method getByteArray

src/main/java/com/jmatio/types/MLSparse.java:314–320  ·  view source on GitHub ↗
(Double value)

Source from the content-addressed store, hash-verified

312 }
313
314 @Override
315 public byte[] getByteArray(Double value) {
316 int byteAllocated = getBytesAllocated();
317 ByteBuffer buff = ByteBuffer.allocate(byteAllocated);
318 buff.putDouble(value);
319 return buff.array();
320 }
321
322 @Override
323 public Class<Double> getStorageClazz() {

Callers

nothing calls this directly

Calls 2

getBytesAllocatedMethod · 0.95
allocateMethod · 0.45

Tested by

no test coverage detected