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

Method getShort

ij/src/main/java/ij/plugin/DICOM.java:356–363  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354 }
355
356 int getShort() throws IOException {
357 int b0 = getByte();
358 int b1 = getByte();
359 if (littleEndian)
360 return ((b1 << 8) + b0);
361 else
362 return ((b0 << 8) + b1);
363 }
364
365 int getSShort() throws IOException {
366 short b0 = (short)getByte();

Callers 4

getLutMethod · 0.95
getNextTagMethod · 0.95
getFileInfoMethod · 0.95
getHeaderInfoMethod · 0.95

Calls 1

getByteMethod · 0.95

Tested by

no test coverage detected