alloca -package
alloca f executes the computation f, passing as argument a pointer to a temporarily allocated block of memory sufficient to hold values of type a.
The memory is freed when f terminates (either normally or via an exception), so the pointer passed to f must not be used after this.
Temporarily allocate space for the given number of elements (like Foreign.Marshal.Alloc.alloca, but for multiple elements).
Like allocaArray, but add an extra position to hold a special termination element.
allocaBytes n f executes the computation f, passing as argument a pointer to a temporarily allocated block of memory of n bytes. The block of memory is sufficiently aligned for any of the basic foreign types that fits into a memory block of the allocated size.
The memory is freed when f terminates (either normally or via an exception), so the pointer passed to f must not be used after this.
Allocate storage for the given number of elements of a storable type (like Foreign.Marshal.Alloc.malloc, but for multiple elements).
Like mallocArray, but add an extra position to hold a special termination element.
Allocate storage for the given number of elements of a storable type in the pool.
Allocate storage for the given number of elements of a storable type in the pool, but leave room for an extra element to signal the end of the array.
Adjust the size of an array in the given pool.
Adjust the size of an array with an end marker in the given pool.
Adjust the size of an array
Adjust the size of an array including an extra position for the end marker.