Allocate a raw memory buffer (external pointer, auto-finalized)
Source:R/03-utils.R
ffi_alloc_buffer.RdAllocates a buffer of the given size (in bytes) and returns an external pointer. The memory is automatically freed when the pointer is garbage collected.