Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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 */
17
export
const
Size = (bytes: SizeInput) => typeof bytes ===
"bigint"
? bytes as Size_ : BigInt(bytes) as Size_
18
19
/** @internal */
20
export
const
KiB = (n: number) => Size(n * 1024)
Callers
6
KiB
Function · 0.85
MiB
Function · 0.85
GiB
Function · 0.85
TiB
Function · 0.85
PiB
Function · 0.85
stream
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected