Bit32

A counter that utilizes 32-bit numbers, providing a maximum count of 2^64.

See also

Constructors

Link copied to clipboard
constructor(lo: Int, hi: Int, incrementBy: Int)

Creates a new Bit32 counter initialized to lo and hi

constructor(incrementBy: Int)

Creates a new Bit32 counter initialized to 0:0

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Holder of the count produced by Bit32.final

Properties

Link copied to clipboard
@get:JvmName(name = "hi")
var hi: Int

The most significant bits of the number

Link copied to clipboard
@JvmField
val incrementBy: Int

The value to increment things by

Link copied to clipboard
@get:JvmName(name = "lo")
var lo: Int

The least significant bits of the number

Functions

Link copied to clipboard
open override fun copy(): Counter.Bit32

Copies the instance and its state to a new Counter

Link copied to clipboard
open override fun final(additional: Int): Counter.Bit32.Final

Produces a final count, including any additional value needed to be added (such as the size of buffered input).

Link copied to clipboard
open override fun increment()

Increments the count

Link copied to clipboard
open override fun reset()

Resets the count to 0:0