(method: string, write: typeof nodeWrite, buffer: Uint8Array)
| 385 | } |
| 386 | |
| 387 | private writeOnce(method: string, write: typeof nodeWrite, buffer: Uint8Array) { |
| 388 | return this.append ? |
| 389 | Effect.suspend(() => write(this.fd, buffer, undefined)) : |
| 390 | this.atCursor((position) => |
| 391 | position === null |
| 392 | ? write(this.fd, buffer, undefined) |
| 393 | : Effect.flatMap(positionToNumber(position, method), (position) => write(this.fd, buffer, position)) |
| 394 | ) |
| 395 | } |
| 396 | |
| 397 | seek(offset: bigint, from: FileSystem.SeekMode) { |
| 398 | return Effect.suspend(() => { |
no test coverage detected