MCPcopy Create free account
hub / github.com/callstackincubator/polygen / isFakeModule

Function isFakeModule

packages/polygen/src/api/Module.ts:43–50  ·  view source on GitHub ↗
(buffer: ArrayBuffer)

Source from the content-addressed store, hash-verified

41}
42
43function isFakeModule(buffer: ArrayBuffer): boolean {
44 if (buffer.byteLength < 6) {
45 return false;
46 }
47
48 const view = new DataView(buffer);
49 return MAGIC.every((byte, i) => view.getUint8(i) === byte);
50}

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected