Companion

object Companion

Functions

Link copied to clipboard
fun allocate(capacity: Int): LongBuffer

Allocates a new LongBuffer with the given capacity (in longs). Internally, it creates a Buffer large enough to hold (capacity * 8) bytes.

Link copied to clipboard

Wraps an existing LongArray into a LongBuffer. The resulting buffer’s capacity and limit are set to array.size.