MCPcopy Index your code
hub / github.com/Effect-TS/effect / Size

Function Size

packages/platform/src/internal/fileSystem.ts:17–17  ·  view source on GitHub ↗
(bytes: SizeInput)

Source from the content-addressed store, hash-verified

15
16/** @internal */
17export const Size = (bytes: SizeInput) => typeof bytes === "bigint" ? bytes as Size_ : BigInt(bytes) as Size_
18
19/** @internal */
20export const KiB = (n: number) => Size(n * 1024)

Callers 6

KiBFunction · 0.85
MiBFunction · 0.85
GiBFunction · 0.85
TiBFunction · 0.85
PiBFunction · 0.85
streamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected