Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
const
buffer =
new
ArrayBuffer(1);
2
const
view =
new
Uint8Array(buffer);
3
function
setBool(slot, value) {
4
view[0] = (view[0] & ~(1 << slot)) | ((value|0) << slot);
Callers
nothing calls this directly
Calls
2
setBool
Function · 0.85
getBool
Function · 0.85
Tested by
no test coverage detected