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

Method readBare

src/main/java/com/jmatio/io/MatFile.java:42–48  ·  view source on GitHub ↗

Reads a bare set of bytes.

(MatFileHeader header, ByteBuffer buffer)

Source from the content-addressed store, hash-verified

40
41 /** Reads a bare set of bytes. */
42 public static Map<String, MLArray> readBare(MatFileHeader header, ByteBuffer buffer) throws IOException {
43 MatFileReader reader = new MatFileReader();
44 reader.matFileHeader = header;
45 buffer.order(header.getByteOrder());
46 reader.readData(buffer);
47 return reader.data;
48 }
49
50 /** Reads a full set of bytes (including the header). */
51 public static MatFile readFull(ByteBuffer buf) throws IOException {

Callers

nothing calls this directly

Calls 2

readDataMethod · 0.95
getByteOrderMethod · 0.80

Tested by

no test coverage detected