DataSizeInBytes

interface DataSizeInBytes

Defines standard data size units in bytes, providing constants for common storage measurements. Implementations of this interface specify whether the units follow binary (base-1024) or decimal (base-1000) conventions. These constants are useful for calculations involving file sizes, memory, or network data.

Inheritors

Properties

Link copied to clipboard
abstract val exabyte: Long

Number of bytes in an exabyte (EB or EiB, depending on the implementation).

Link copied to clipboard
abstract val gigabyte: Long

Number of bytes in a gigabyte (GB or GiB, depending on the implementation).

Link copied to clipboard
abstract val kilobyte: Long

Number of bytes in a kilobyte (KB or KiB, depending on the implementation).

Link copied to clipboard
abstract val megabyte: Long

Number of bytes in a megabyte (MB or MiB, depending on the implementation).

Link copied to clipboard
abstract val petabyte: Long

Number of bytes in a petabyte (PB or PiB, depending on the implementation).

Link copied to clipboard
abstract val terabyte: Long

Number of bytes in a terabyte (TB or TiB, depending on the implementation).