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

Method i2hex

ij/src/main/java/ij/plugin/DICOM.java:927–933  ·  view source on GitHub ↗

Converts an int to an 8 byte hex string.

(int i)

Source from the content-addressed store, hash-verified

925
926 /** Converts an int to an 8 byte hex string. */
927 String i2hex(int i) {
928 for (int pos=7; pos>=0; pos--) {
929 buf8[pos] = Tools.hexDigits[i&0xf];
930 i >>>= 4;
931 }
932 return new String(buf8);
933 }
934
935 char[] buf10;
936

Callers 1

getHeaderInfoMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected