MCPcopy Create free account
hub / github.com/MultithreadedJSBook/code-samples / booleans.js

File booleans.js

ch4-serialization/booleans.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const buffer = new ArrayBuffer(1);
2const view = new Uint8Array(buffer);
3function setBool(slot, value) {
4 view[0] = (view[0] & ~(1 << slot)) | ((value|0) << slot);

Callers

nothing calls this directly

Calls 2

setBoolFunction · 0.85
getBoolFunction · 0.85

Tested by

no test coverage detected