LongsRef

Represents long[], as a slice (offset + length) into an existing long[]. The .longs member should never be null; use .EMPTY_LONGS if necessary.

Constructors

Link copied to clipboard
constructor()

Create a LongsRef with .EMPTY_LONGS

constructor(capacity: Int)

Create a LongsRef pointing to a new array of size capacity. Offset and length will both be zero.

constructor(longs: LongArray, offset: Int, length: Int)

This instance will directly reference longs w/o making a copy. longs should not be null

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
var length: Int

Length of used longs.

Link copied to clipboard

The contents of the LongsRef. Should never be null.

Link copied to clipboard
var offset: Int

Offset of first valid long.

Functions

Link copied to clipboard
open override fun clone(): LongsRef

Returns a shallow clone of this instance (the underlying longs are not copied and will be shared by both the returned object and this object.

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

Signed int order comparison

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String