allocate

fun allocate(size: Int): Buffer(source)
fun allocate(size: Long): Buffer(source)

Allocates a native memory region of size bytes and returns a Buffer that allows read and write operations on that region.