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

Method getInt

ij/src/main/java/ij/io/TiffDecoder.java:94–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 final int getInt() throws IOException {
95 int b1 = in.read();
96 int b2 = in.read();
97 int b3 = in.read();
98 int b4 = in.read();
99 if (littleEndian)
100 return ((b4 << 24) + (b3 << 16) + (b2 << 8) + (b1 << 0));
101 else
102 return ((b1 << 24) + (b2 << 16) + (b3 << 8) + b4);
103 }
104
105 final long getUnsignedInt() throws IOException {
106 return (long)getInt()&0xffffffffL;

Callers 7

getUnsignedIntMethod · 0.95
readLongMethod · 0.95
OpenImageFileHeaderMethod · 0.95
getValueMethod · 0.95
OpenIFDMethod · 0.95
getMetaDataMethod · 0.95
getTiffInfoMethod · 0.95

Calls 1

readMethod · 0.65

Tested by

no test coverage detected