MCPcopy Create free account
hub / github.com/Botloader/botloader / NativeReader

Class NativeReader

components/runtime/src/ts/unstable/streams.ts:40–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 * @internal
39 */
40export class NativeReader implements AsyncReader, AsyncReadCloser {
41 rid: number;
42
43 constructor(rid: number) {
44 this.rid = rid
45 }
46
47 read(buf: Uint8Array): Promise<number> {
48 return Deno.core.read(this.rid, buf);
49 }
50
51 close(): void {
52 Deno.core.close(this.rid);
53 }
54}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected