| 38 | * @internal |
| 39 | */ |
| 40 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected