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

Method buldFromBytes

src/main/java/com/jmatio/types/MLInt32.java:127–134  ·  view source on GitHub ↗
(byte[] bytes)

Source from the content-addressed store, hash-verified

125 }
126
127 public Integer buldFromBytes(byte[] bytes) {
128 if (bytes.length != getBytesAllocated()) {
129 throw new IllegalArgumentException(
130 "To build from byte array I need array of size: "
131 + getBytesAllocated());
132 }
133 return ByteBuffer.wrap(bytes).getInt();
134 }
135
136 public int getBytesAllocated() {
137 return Integer.SIZE >> 3;

Callers

nothing calls this directly

Calls 1

getBytesAllocatedMethod · 0.95

Tested by

no test coverage detected