Crate ps_alloc

Crate ps_alloc 

Source

Enums§

AllocationError
DeallocationError
ReallocationError

Constants§

HEADER_SIZE
MARKER_FREE
MARKER_USED

Functions§

alloc
A reasonably safe implementation of alloc.Memory allocated by this function must be freed by this crate’s free.Caller guarantees free is called before the returned pointer goes out of scope.
free
A reasonably safe implementation of free.This function will free a pointer allocated by alloc.Caller guarantees that the provided pointer was allocated by this crate’s alloc function.Providing NULL is safe and will return Err(DeallocationError::NullPtr).Providing any other pointer causes undefined behaviour.
relloc
Reallocates memory allocated by alloc.