MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / readShort

Method readShort

ij/src/main/java/ij/plugin/AVI_Reader.java:1424–1428  ·  view source on GitHub ↗

Read 2-byte short with Intel (little-endian) byte order (note: RandomAccessFile.readShort has other byte order than AVI)

()

Source from the content-addressed store, hash-verified

1422 /** Read 2-byte short with Intel (little-endian) byte order
1423 * (note: RandomAccessFile.readShort has other byte order than AVI) */
1424 final short readShort() throws IOException {
1425 int low = raFile.readByte() & 0xff;
1426 int high = raFile.readByte() & 0xff;
1427 return (short) (high << 8 | low);
1428 }
1429
1430 /** Read type of next chunk that is not JUNK.
1431 * Returns type (or 0 if no non-JUNK chunk until endPosition) */

Callers 3

readAvi2IndexMethod · 0.95
readBitMapInfoMethod · 0.95
openBinaryLutMethod · 0.45

Calls 1

readByteMethod · 0.45

Tested by

no test coverage detected