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

Function toUint64

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

Source from the content-addressed store, hash-verified

49// Node fills bigint stats from a BigInt64Array, so unsigned 64-bit values such
50// as dev_t and ino_t at or above 2^63 are reported as negative.
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)

Callers 1

makeFileInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected