Bytes

data class Bytes(val bytes: Long) : FileSize(source)

Represents a file's size in bytes with automatic unit selection for display.

Constructors

Link copied to clipboard
constructor(bytes: Long)

Properties

Link copied to clipboard
val bytes: Long

the exact size in bytes (non-negative)

Functions

Link copied to clipboard
open override fun display(): String

Formats the byte count as a human-readable string.