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

Function check

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

Source from the content-addressed store, hash-verified

61}
62
63function check(offset, byteLength, value) {
64 const b = new Uint8Array(f.read(offset, byteLength));
65 for (let i = 0; i < byteLength; i++) {
66 const t = b[i];
67 if (b[i] !== value)
68 return false
69 }
70 return true;
71}

Callers 3

readwriteerase.jsFile · 0.70
DebugBehavior.jsFile · 0.50
constructorMethod · 0.50

Calls 1

readMethod · 0.65

Tested by

no test coverage detected