MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / write

Function write

g2all/700/module/rw.js:117–121  ·  view source on GitHub ↗
(u8_view, offset, value, size)

Source from the content-addressed store, hash-verified

115
116// for writes less than 8 bytes
117function write(u8_view, offset, value, size) {
118 for (let i = 0; i < size; i++) {
119 u8_view[offset + i] = (value >>> (i * 8)) & 0xff;
120 }
121}
122
123export function write16(u8_view, offset, value) {
124 write(u8_view, offset, value, 2);

Callers 2

write16Function · 0.70
write32Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected