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

Function write

g2all/900/module/rw.js:112–116  ·  view source on GitHub ↗
(u8_view, offset, value, size)

Source from the content-addressed store, hash-verified

110
111// for writes less than 8 bytes
112function write(u8_view, offset, value, size) {
113 for (let i = 0; i < size; i++) {
114 u8_view[offset + i] = (value >>> i*8) & 0xff;
115 }
116}
117
118export function write16(u8_view, offset, value) {
119 write(u8_view, offset, value, 2);

Callers 2

write16Function · 0.70
write32Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected