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

Method indexLib

java/com/facebook/soloader/NativeDeps.java:236–244  ·  view source on GitHub ↗
(int hash, int nameBegin)

Source from the content-addressed store, hash-verified

234 // sEncodedDeps, stores indices for mapping from lib name hash to offset,
235 // and from lib index to offset.
236 private static void indexLib(int hash, int nameBegin) {
237 sPrecomputedLibs.add(nameBegin);
238 List<Integer> bucket = sPrecomputedDeps.get(hash);
239 if (bucket == null) {
240 bucket = new ArrayList<Integer>();
241 sPrecomputedDeps.put(hash, bucket);
242 }
243 bucket.add(nameBegin);
244 }
245
246 // Preprocess bytes from deps file. The deps file should be ascii encoded,
247 // with the format:

Callers 1

indexDepsBytesMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected