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

Function Size

packages/effect/src/FileSystem.ts:466–466  ·  view source on GitHub ↗
(bytes: SizeInput)

Source from the content-addressed store, hash-verified

464 * @since 4.0.0
465 */
466export const Size = (bytes: SizeInput): Size => typeof bytes === "bigint" ? bytes as Size : BigInt(bytes) as Size
467
468/**
469 * Creates a `Size` representing kilobytes (1024 bytes).

Callers 6

KiBFunction · 0.85
MiBFunction · 0.85
GiBFunction · 0.85
TiBFunction · 0.85
PiBFunction · 0.85
makeFunction · 0.85

Calls 1

BigIntInterface · 0.70

Tested by

no test coverage detected