ByteSize

value class ByteSize(val inWholeBytes: Long) : Comparable<ByteSize>

Inspired by https://github.com/saket/file-size as well as Kotlin's Duration API.

Constructors

Link copied to clipboard
constructor(inWholeBytes: Long)

Functions

Link copied to clipboard
open operator override fun compareTo(other: ByteSize): Int
Link copied to clipboard
inline operator fun div(other: ByteSize): ByteSize
Link copied to clipboard
inline operator fun minus(other: ByteSize): ByteSize
Link copied to clipboard
inline operator fun plus(other: ByteSize): ByteSize
Link copied to clipboard
inline operator fun times(other: ByteSize): ByteSize
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard