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

Function positionToNumber

packages/platform/node-shared/src/NodeFileSystem.ts:57–61  ·  view source on GitHub ↗
(position: bigint, method: string)

Source from the content-addressed store, hash-verified

55
56// fs.write ignores bigint positions.
57const positionToNumber = (position: bigint, method: string) =>
58 Effect.try({
59 try: () => bigintToNumber(position, "position"),
60 catch: handleBadArgument(method)
61 })
62
63// == access
64

Callers 1

writeOnceMethod · 0.85

Calls 2

bigintToNumberFunction · 0.85
handleBadArgumentFunction · 0.85

Tested by

no test coverage detected