Skip to content

Extensions

Arun Prakash edited this page Nov 29, 2025 · 2 revisions

Extensions 🧩

Fluent constructors on int, double, and BigInt.

int

10.kiloBytes; // ByteConverter from KB
512.kibiBytes; // ByteConverter from KiB
2048.bits;     // ByteConverter from bits

double

1.5.gigaBytes; // ByteConverter
1024.0.bytes;  // ByteConverter

BigInt

BigInt.one.yottaBytes; // BigByteConverter
BigInt.from(1024).kibiBytes; // BigByteConverter

Clone this wiki locally