Bitrate

Represents an amount of bits that are processed per second.

Bitrate can represent ±8 exabits/s.

To construct a Bitrate, use the extension functions kilobits, megabits, gigabits, and so on.

To get the value of this Capacity expressed in a particular CapacityUnit, use the functions toLong, toDouble, and so on.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun compareTo(other: Bitrate): Int
Link copied to clipboard
operator fun minus(other: Bitrate): Bitrate

Subtracts other from this Bitrate. This currently does not handle integer overflow.

Link copied to clipboard
operator fun plus(other: Bitrate): Bitrate

Adds other to this Bitrate. This currently does not handle integer overflow.

Link copied to clipboard

Converts this Bitrate to the given BitrateUnit, returning a Double representing the precise value.

Link copied to clipboard
fun toLong(unit: BitrateUnit): Long

Converts this Bitrate to the given BitrateUnit, rounding to the nearest whole number.