ByteCount

opaque type ByteCount

Byte Size

ByteCount is an opaque Long value, used to indicate something like "File size" or "memory allocation", whatever is counted in bytes

Source
ByteCount.scala

Def

@targetName("remainder")
inline def %(v: ByteCount | Byte | Short | Int | Long): ByteCount

Remainder

Remainder

Returns the remainder of the division of this by given value

Inherited from
_methods
Source
Numerical.scala
@targetName("multiply")
inline def *(v: ByteCount | Byte | Short | Int | Long): ByteCount

Multiply

Multiply

Returns the product of this and given value

Inherited from
_methods
Source
Numerical.scala
@targetName("plus")
inline def +(v: ByteCount | Byte | Short | Int | Long): ByteCount

Plus

Plus

Returns the sum of this and given value

Inherited from
_methods
Source
Numerical.scala
@targetName("minus")
inline def -(v: ByteCount | Byte | Short | Int | Long): ByteCount

Minus

Minus

Returns difference of this and given value

Inherited from
_methods
Source
Numerical.scala
@targetName("divide")
inline def /(v: ByteCount | Byte | Short | Int | Long): ByteCount

Divide

Divide

Returns the quotient of this and given value

Inherited from
_methods
Source
Numerical.scala
@targetName("less")
inline def <(v: ByteCount | Byte | Short | Int | Long | Float | Double): Boolean

Less

Less

Returns true if current value is less than given, false - otherwise

Inherited from
_methods
Source
Numerical.scala
@targetName("less")
inline def <(v: ByteCount): Boolean

Less

Less

Returns true if current value is less than given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@targetName("lessOrEqual")
inline def <=(v: ByteCount | Byte | Short | Int | Long | Float | Double): Boolean

Less or equal

Less or equal

Returns true if current value is less or equal to given, false - otherwise

Inherited from
_methods
Source
Numerical.scala
@targetName("lessOrEqual")
inline def <=(v: ByteCount): Boolean

Less or equal

Less or equal

Returns true if current value is less or equal to given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@targetName("range")
inline def <>(to: Long.G.Range[ByteCount]

Range

Range

Returns Range from current to given value

Note. Range uses base primitive natural ordering

Inherited from
z_MethodsBase
Source
Ordered.scala
@targetName("rangeX")
inline def <>>(to: Long.G.Range[ByteCount]

Exclusive end range

Exclusive end range

Returns Range from current to given value exclusive

Note. Range uses base primitive natural ordering

Inherited from
z_MethodsBase
Source
Ordered.scala
@targetName("greater")
inline def >(v: ByteCount | Byte | Short | Int | Long | Float | Double): Boolean

Greater

Greater

Returns true if current value is greater than given, false - otherwise

Inherited from
_methods
Source
Numerical.scala
@targetName("greater")
inline def >(v: ByteCount): Boolean

Greater

Greater

Returns true if current value is greater than given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@targetName("greaterOrEqual")
inline def >=(v: ByteCount | Byte | Short | Int | Long | Float | Double): Boolean

Greater or equal

Greater or equal

Returns true if current value is greater or equal to given, false - otherwise

Inherited from
_methods
Source
Numerical.scala
@targetName("greaterOrEqual")
inline def >=(v: ByteCount): Boolean

Greater or equal

Greater or equal

Returns true if current value is greater or equal to given, false - otherwise

Inherited from
_methods
Source
Ordered.scala
@targetName("Opt")
inline def ?: Long.G.Opt[ByteCount]

To option

To option

Returns Long specialized option

Inherited from
_methods
Source
Base.scala
inline def abs: ByteCount
Inherited from
_methods
Source
Numerical.scala
inline def max(v:

Max value

Max value

Returns maximum of current or given value

Inherited from
z_MethodsBase
Source
Ordered.scala
inline def min(v:

Min value

Min value

Returns minimun of current or given value

Inherited from
z_MethodsBase
Source
Ordered.scala
inline def real: Long

Real value

Real value

Returns Long value standing behind the opaque type.

This is a zero cost call.

Inherited from
_methods
Source
Base.scala
inline def roundTo(unit: ByteCount)(using r: Math.Rounding): ByteCount

Round to size

Round to size

Rounds current value to specified size

Inherited from
_methods
Source
Numerical.scala
inline def sign: Int

Sign

Sign

Returns -1 if this is negative, 0 - if this value equals to 0, and 1 otherwise

Inherited from
_methods
Source
Numerical.scala
inline def tagBrief: String
inline def toByte: Byte

Make Byte

Make Byte

Returns underlying value

Inherited from
_methods
Source
Numerical.scala
inline def toChar: Char

Make Char

Make Char

Attached Char constructor

Inherited from
_methods
Source
Numerical.scala
inline def toDouble: Double

Make Double

Make Double

Attached Double constructor

Inherited from
_methods
Source
Numerical.scala
inline def toFloat: Float

Make Float

Make Float

Attached Float constructor

Inherited from
_methods
Source
Numerical.scala
inline def toInt: Int

Make Int

Make Int

Attached Int constructor

Inherited from
_methods
Source
Numerical.scala
inline def toLong: Long

Make Long

Make Long

Attached Long constructor

Inherited from
_methods
Source
Numerical.scala
inline def toNumber: java.lang.Long

Make Number

Make Number

Attached Number constructor

Inherited from
_methods
Source
Numerical.scala
inline def toShort: Short

Make Short

Make Short

Attached Short constructor

Inherited from
_methods
Source
Numerical.scala
inline def unary_-: ByteCount

Negate

Negate

Returns negation of this value

Inherited from
_methods
Source
Numerical.scala