Companion

Provides factory functions for allocating a Buffer.

Functions

Link copied to clipboard
fun allocate(size: Int): Buffer
fun allocate(size: Long): Buffer

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