MCPcopy Create free account
hub / github.com/WICG/webpackage / fixupIndex

Method fixupIndex

js/bundle/src/encoder.ts:108–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 private fixupIndex() {
109 // Adjust the offsets by the length of the response section's CBOR header.
110 const responsesHeaderSize = encodedLength(this.responses.length);
111 return this.compatAdapter.updateIndexValues(responsesHeaderSize);
112 }
113
114 private createTopLevel(): CBORValue {
115 return this.compatAdapter.createTopLevel();

Callers 1

createBundleMethod · 0.95

Calls 1

updateIndexValuesMethod · 0.65

Tested by

no test coverage detected