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

Method readBuffer

modules/io/i2c/smbus.js:57–60  ·  view source on GitHub ↗
(register, buffer)

Source from the content-addressed store, hash-verified

55 }
56
57 readBuffer(register, buffer) {
58 this.#byteBuffer[0] = register;
59 return this.#io.writeRead(this.#byteBuffer, buffer, this.#stop);
60 }
61
62 writeUint8(register, byte) {
63 const io = this.#io, buffer = this.#wordBuffer;

Callers 15

readBlockMethod · 0.95
constructorMethod · 0.45
sampleMethod · 0.45
sampleMethod · 0.45
sampleMethod · 0.45
#updateFeaturePageMethod · 0.45
sampleMethod · 0.45
sampleMethod · 0.45
sampleMethod · 0.45
sampleMethod · 0.45
sampleMethod · 0.45
#doSampleMethod · 0.45

Calls 1

writeReadMethod · 0.45

Tested by

no test coverage detected