allocate

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.