StorageSize

class StorageSize(value: Long, unit: StorageSizeUnit) : Comparable<StorageSize>

A size measured in bytes, kibibytes, mebibytes, etc.

Example:

val quota: StorageSize = 256.mebibytes

Constructors

Link copied to clipboard
fun StorageSize(value: Long, unit: StorageSizeUnit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun compareTo(other: StorageSize): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val inBytes: Long
Link copied to clipboard
val unit: StorageSizeUnit
Link copied to clipboard
val value: Long