Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
466
export
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
KiB
Function · 0.85
MiB
Function · 0.85
GiB
Function · 0.85
TiB
Function · 0.85
PiB
Function · 0.85
make
Function · 0.85
Calls
1
BigInt
Interface · 0.70
Tested by
no test coverage detected