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

Method buldFromBytes

src/main/java/com/jmatio/types/MLSingle.java:24–31  ·  view source on GitHub ↗
(byte[] bytes)

Source from the content-addressed store, hash-verified

22 }
23
24 public Float buldFromBytes(byte[] bytes) {
25 if (bytes.length != getBytesAllocated()) {
26 throw new IllegalArgumentException(
27 "To build from byte array I need array of size: "
28 + getBytesAllocated());
29 }
30 return ByteBuffer.wrap(bytes).getFloat();
31 }
32
33 public byte[] getByteArray(Float value) {
34 int byteAllocated = getBytesAllocated();

Callers

nothing calls this directly

Calls 1

getBytesAllocatedMethod · 0.95

Tested by

no test coverage detected