Module arrow_buffer::alloc
source · Expand description
Defines memory-related functions, such as allocate/deallocate/reallocate memory regions, cache and allocation alignments.
Constants
Cache and allocation multiple alignment size
Traits
The owner of an allocation.
The trait implementation is responsible for dropping the allocations once no more references exist.
Functions
Allocates a cache-aligned memory region of
size
bytes with uninitialized values.
This is more performant than using allocate_aligned_zeroed when all bytes will have
an unknown or non-zero value and is semantically similar to malloc
.Allocates a cache-aligned memory region of
size
bytes with 0
on all of them.
This is more performant than using allocate_aligned and setting all bytes to zero
and is semantically similar to calloc
.Safety
Safety