DirectBytesStartArray

open class DirectBytesStartArray @JvmOverloads constructor(initSize: Int, bytesUsed: Counter = Counter.newCounter()) : BytesRefHash.BytesStartArray

A simple BytesStartArray that tracks memory allocation using a private Counter instance.

Constructors

Link copied to clipboard
constructor(initSize: Int, bytesUsed: Counter = Counter.newCounter())

Functions

Link copied to clipboard
open override fun bytesUsed(): Counter

A Counter reference holding the number of bytes used by this BytesStartArray. The BytesRefHash uses this reference to track it memory usage

Link copied to clipboard
open override fun clear(): IntArray?

clears the BytesStartArray and returns the cleared instance.

Link copied to clipboard
open override fun grow(): IntArray

Grows the BytesStartArray

Link copied to clipboard
open override fun init(): IntArray

Initializes the BytesStartArray. This call will allocate memory