MCPcopy Create free account
hub / github.com/facebook/SoLoader / getSz

Method getSz

java/com/facebook/soloader/MinElf.java:281–289  ·  view source on GitHub ↗
(ElfByteChannel bc, ByteBuffer bb, long offset)

Source from the content-addressed store, hash-verified

279 }
280
281 private static String getSz(ElfByteChannel bc, ByteBuffer bb, long offset) throws IOException {
282 StringBuilder sb = new StringBuilder();
283 short b;
284 while ((b = getu8(bc, bb, offset++)) != 0) {
285 sb.append((char) b);
286 }
287
288 return sb.toString();
289 }
290
291 private static void read(ElfByteChannel bc, ByteBuffer bb, int sz, long offset)
292 throws IOException {

Callers 1

Calls 2

getu8Method · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected