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

Method getShort

ij/src/main/java/ij/io/RoiDecoder.java:583–590  ·  view source on GitHub ↗
(int base)

Source from the content-addressed store, hash-verified

581 }
582
583 int getShort(int base) {
584 int b0 = data[base]&255;
585 int b1 = data[base+1]&255;
586 int n = (short)((b0<<8) + b1);
587 if (n<-5000)
588 n = (b0<<8) + b1; // assume n>32767 and unsigned
589 return n;
590 }
591
592 int getUnsignedShort(int base) {
593 int b0 = data[base]&255;

Callers 9

getRoiMethod · 0.95
getShapeRoiMethod · 0.95
getTextRoiMethod · 0.95
getRoiNameMethod · 0.95
getRoiPropsMethod · 0.95
fillMemDataMethod · 0.45
decompressBufferMethod · 0.45
getUnsignedShortMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected