MCPcopy Create free account
hub / github.com/Effect-TS/effect / toUint64Option

Function toUint64Option

packages/platform/node-shared/src/NodeFileSystem.ts:53–54  ·  view source on GitHub ↗
(value: bigint | undefined)

Source from the content-addressed store, hash-verified

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

Callers 1

makeFileInfoFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected