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

Method getString

ij/src/main/java/ij/io/TiffDecoder.java:185–195  ·  view source on GitHub ↗
(int count, long offset)

Source from the content-addressed store, hash-verified

183 }
184
185 byte[] getString(int count, long offset) throws IOException {
186 count--; // skip null byte at end of string
187 if (count<=3)
188 return null;
189 byte[] bytes = new byte[count];
190 long saveLoc = in.getLongFilePointer();
191 in.seek(offset);
192 in.readFully(bytes);
193 in.seek(saveLoc);
194 return bytes;
195 }
196
197 /** Save the image description in the specified FileInfo. ImageJ
198 saves spatial and density calibration data in this string. For

Callers 1

OpenIFDMethod · 0.95

Calls 3

getLongFilePointerMethod · 0.80
seekMethod · 0.65
readFullyMethod · 0.65

Tested by

no test coverage detected