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 for reading and writing it.