(buffer: Uint8Array, options?: FileSystem.File.ReadOptions)
| 410 | } |
| 411 | |
| 412 | read(buffer: Uint8Array, options?: FileSystem.File.ReadOptions) { |
| 413 | return Effect.suspend(() => { |
| 414 | const explicit = options?.position |
| 415 | if (explicit === undefined) { |
| 416 | return this.atCursor((position) => nodeRead(this.fd, { buffer, position })) |
| 417 | } |
| 418 | return explicit < BigInt(0) |
| 419 | ? Effect.fail(negativePosition("read")) |
| 420 | : nodeRead(this.fd, { buffer, position: explicit }) |
| 421 | }) |
| 422 | } |
| 423 | |
| 424 | readAlloc(size: number, options?: FileSystem.File.ReadOptions) { |
| 425 | return Effect.suspend(() => { |
nothing calls this directly
no test coverage detected