aligned_alloc 0.1.3

Provides cross-platform primitives for aligned memory allocation

Crate aligned_alloc [] [src]

Functions

aligned_alloc

Allocates size Bytes aligned to align Bytes. Returns a null pointer on allocation failure.

aligned_free

Deallocates aligned memory that was allocated with aligned_alloc. Unsafe because calling this with a pointer that was not allocated with aligned_alloc (or already released) causes undefined behavior.