MCPcopy
hub / github.com/pyodide/pyodide / prepareBuffer

Function prepareBuffer

src/js/streams.ts:199–204  ·  view source on GitHub ↗
(
  buffer: Uint8Array,
  offset: number,
  length: number,
)

Source from the content-addressed store, hash-verified

197}
198
199const prepareBuffer = (
200 buffer: Uint8Array,
201 offset: number,
202 length: number,
203): Uint8Array =>
204 API.typedArrayAsUint8Array(buffer).subarray(offset, offset + length);
205
206type FSTty = {
207 ops: TtyOps<FSTty>;

Callers 1

streams.tsFile · 0.85

Calls 1

subarrayMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…