Skip to content
🤔 Documentation issue? Report it

//leakcanary-repo/shark/ByteSize

ByteSize

[jvm]\ @JvmInline

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

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

Constructors

ByteSize [jvm]
constructor(inWholeBytes: Long)

Functions

Name Summary
compareTo [jvm]
open operator override fun compareTo(other: ByteSize): Int
div [jvm]
inline operator fun div(other: ByteSize): ByteSize
minus [jvm]
inline operator fun minus(other: ByteSize): ByteSize
plus [jvm]
inline operator fun plus(other: ByteSize): ByteSize
times [jvm]
inline operator fun times(other: ByteSize): ByteSize
toString [jvm]
open override fun toString(): String

Properties

Name Summary
inWholeBytes [jvm]
val inWholeBytes: Long
inWholeGigabytes [jvm]
val inWholeGigabytes: Long
inWholeKilobytes [jvm]
val inWholeKilobytes: Long
inWholeMegabytes [jvm]
val inWholeMegabytes: Long