Skip to contents

Allocates a buffer of the given size (in bytes) and returns an external pointer. The memory is automatically freed when the pointer is garbage collected.

Usage

ffi_alloc_buffer(size)

Arguments

size

Number of bytes to allocate

Value

External pointer to buffer