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

Method writeShort

ij/src/main/java/ij/io/TiffEncoder.java:487–495  ·  view source on GitHub ↗
(OutputStream out, int v)

Source from the content-addressed store, hash-verified

485 }
486
487 final void writeShort(OutputStream out, int v) throws IOException {
488 if (littleEndian) {
489 out.write(v&255);
490 out.write((v>>>8)&255);
491 } else {
492 out.write((v>>>8)&255);
493 out.write(v&255);
494 }
495 }
496
497 final void writeInt(OutputStream out, int v) throws IOException {
498 if (littleEndian) {

Callers 3

writeEntryMethod · 0.95
writeIFDMethod · 0.95
writeBitsPerPixelMethod · 0.95

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected