IntsRefBuilder

A builder for IntsRef instances.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun append(i: Int)

Append the provided int to this buffer.

Link copied to clipboard
fun clear()

Empty this builder.

Link copied to clipboard
fun copyInts(ints: IntsRef)
fun copyInts(otherInts: IntArray, otherOffset: Int, otherLength: Int)

Copies the given array into this instance.

Link copied to clipboard

Copy the given UTF-8 bytes into this builder. Works as if the bytes were first converted from UTF-8 to UTF-32 and then copied into this builder.

Link copied to clipboard
open operator override fun equals(obj: Any?): Boolean
Link copied to clipboard
fun get(): IntsRef

Return a IntsRef that points to the internal content of this builder. Any update to the content of this builder might invalidate the provided ref and vice-versa.

Link copied to clipboard
fun grow(newLength: Int)

Used to grow the reference array.

Link copied to clipboard
fun growNoCopy(newLength: Int)

Grow the reference array without copying the origin data to the new array.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun intAt(offset: Int): Int

Return the int at the given offset.

Link copied to clipboard
fun ints(): IntArray

Return a reference to the ints of this builder.

Link copied to clipboard
fun length(): Int

Return the number of ints in this buffer.

Link copied to clipboard
fun setIntAt(offset: Int, b: Int)

Set an int.

Link copied to clipboard
fun setLength(length: Int)

Set the length.

Link copied to clipboard

Build a new CharsRef that has the same content as this builder.