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

Method buldFromBytes

src/main/java/com/jmatio/types/MLDouble.java:136–144  ·  view source on GitHub ↗
(byte[] bytes)

Source from the content-addressed store, hash-verified

134 }
135
136 public Double buldFromBytes(byte[] bytes) {
137 if (bytes.length != getBytesAllocated()) {
138 throw new IllegalArgumentException(
139 "To build from byte array I need array of size: "
140 + getBytesAllocated());
141 }
142 return ByteBuffer.wrap(bytes).getDouble();
143
144 }
145
146 public byte[] getByteArray(Double value) {
147 int byteAllocated = getBytesAllocated();

Callers

nothing calls this directly

Calls 1

getBytesAllocatedMethod · 0.95

Tested by

no test coverage detected