Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
43
function
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
constructor
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected