MCPcopy Index your code
hub / github.com/darkreader/darkreader / toBuffer

Function toBuffer

tasks/integrity.js:37–44  ·  view source on GitHub ↗
(arrayBuffer)

Source from the content-addressed store, hash-verified

35}
36
37function toBuffer(arrayBuffer) {
38 const buffer = Buffer.alloc(arrayBuffer.byteLength);
39 const view = new Uint8Array(arrayBuffer);
40 for (let i = 0; i < buffer.length; ++i) {
41 buffer[i] = view[i];
42 }
43 return buffer;
44}
45
46function firefoxExtractHashMetaInfOrder(manifest) {
47 function getDigestAlgos(lines) {

Callers 1

firefoxFetchAllMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected