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

Method buldFromBytes

src/main/java/com/jmatio/types/MLSparse.java:303–312  ·  view source on GitHub ↗
(byte[] bytes)

Source from the content-addressed store, hash-verified

301 }
302
303 @Override
304 public Double buldFromBytes(byte[] bytes) {
305 if (bytes.length != getBytesAllocated()) {
306 throw new IllegalArgumentException(
307 "To build from byte array I need array of size: "
308 + getBytesAllocated());
309 }
310 return ByteBuffer.wrap(bytes).getDouble();
311
312 }
313
314 @Override
315 public byte[] getByteArray(Double value) {

Callers

nothing calls this directly

Calls 1

getBytesAllocatedMethod · 0.95

Tested by

no test coverage detected