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

Method buldFromBytes

src/main/java/com/jmatio/types/MLInt64.java:132–139  ·  view source on GitHub ↗
(byte[] bytes)

Source from the content-addressed store, hash-verified

130 }
131
132 public Long buldFromBytes(byte[] bytes) {
133 if (bytes.length != getBytesAllocated()) {
134 throw new IllegalArgumentException(
135 "To build from byte array I need array of size: "
136 + getBytesAllocated());
137 }
138 return ByteBuffer.wrap(bytes).getLong();
139 }
140
141 public int getBytesAllocated() {
142 return Long.SIZE >> 3;

Callers

nothing calls this directly

Calls 1

getBytesAllocatedMethod · 0.95

Tested by

no test coverage detected