(value: bigint | undefined)
| 51 | const toUint64 = (value: bigint): bigint => BigInt.asUintN(64, value) |
| 52 | |
| 53 | const toUint64Option = (value: bigint | undefined): Option.Option<bigint> => |
| 54 | Option.map(Option.fromNullishOr(value), toUint64) |
| 55 | |
| 56 | // fs.write ignores bigint positions. |
| 57 | const positionToNumber = (position: bigint, method: string) => |