MCPcopy Create free account
hub / github.com/Datakitpage/Datakit / constructor

Method constructor

frontend/src/lib/streamReader.ts:15–20  ·  view source on GitHub ↗
(
      private stream: ReadableStream<Uint8Array>,
      private options: StreamReaderOptions = {}
    )

Source from the content-addressed store, hash-verified

13 private aborted: boolean = false;
14
15 constructor(
16 private stream: ReadableStream<Uint8Array>,
17 private options: StreamReaderOptions = {}
18 ) {
19 this.reader = stream.getReader();
20 }
21
22 /**
23 * Read the entire stream and return as Uint8Array

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected