MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fill

Function fill

tests/modules/files/flash/readwriteerase.js:57–61  ·  view source on GitHub ↗
(offset, byteLength, value)

Source from the content-addressed store, hash-verified

55
56
57function fill(offset, byteLength, value) {
58 const b = new Uint8Array(byteLength);
59 b.fill(value);
60 f.write(offset, byteLength, b);
61}
62
63function check(offset, byteLength, value) {
64 const b = new Uint8Array(f.read(offset, byteLength));

Callers 1

readwriteerase.jsFile · 0.70

Calls 2

fillMethod · 0.65
writeMethod · 0.65

Tested by

no test coverage detected