MCPcopy Index your code
hub / github.com/nodejs/node / rawSource2

Function rawSource2

test/parallel/test-stream-iter-consumers-bytes.js:149–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147
148 // bytes() with raw chunks
149 async function* rawSource2() {
150 yield encoder.encode('ab');
151 }
152 const data = await bytes(rawSource2());
153 assert.strictEqual(data.length, 2);
154 assert.strictEqual(data[0], 97); // 'a'

Callers 1

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…