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

Method buldFromBytes

src/main/java/com/jmatio/types/MLInt16.java:135–143  ·  view source on GitHub ↗
(byte[] bytes)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getBytesAllocatedMethod · 0.95

Tested by

no test coverage detected