MCPcopy
hub / github.com/pyodide/pyodide / decodeBuildId

Function decodeBuildId

src/js/snapshot.ts:102–107  ·  view source on GitHub ↗
(buffer: Uint32Array)

Source from the content-addressed store, hash-verified

100}
101
102function decodeBuildId(buffer: Uint32Array): string {
103 if (buffer.length !== 8) {
104 throw new Error("Expected 256 bit buffer");
105 }
106 return Array.from(buffer, (n) => n.toString(16).padStart(8, "0")).join("");
107}
108
109function checkEntry(index: number, value: any, expected: any): void {
110 if (value === expected) {

Callers 1

snapshot.tsFile · 0.85

Calls 2

joinMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…