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

Method writeInt

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

Source from the content-addressed store, hash-verified

495 }
496
497 final void writeInt(OutputStream out, int v) throws IOException {
498 if (littleEndian) {
499 out.write(v&255);
500 out.write((v>>>8)&255);
501 out.write((v>>>16)&255);
502 out.write((v>>>24)&255);
503 } else {
504 out.write((v>>>24)&255);
505 out.write((v>>>16)&255);
506 out.write((v>>>8)&255);
507 out.write(v&255);
508 }
509 }
510
511 final void writeLong(OutputStream out, long v) throws IOException {
512 if (littleEndian) {

Callers 4

writeEntryMethod · 0.95
writeIFDMethod · 0.95
writeScaleMethod · 0.95
writeMetaDataMethod · 0.95

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected