PmrResourceVtable struct

Operations implemented by a memory resource.

The wrappers have already rejected a null resource, a zero size, and an alignment that is not a non-zero power of two. allocate returns an aligned block of at least bytes uninitialized bytes, or NULL on failure. deallocate does not report failure. is_equal is true only when both resources can free each other's blocks. Do not call pmr_is_equal on self from inside is_equal; that recurses.

Public variables

void*(* allocate
void(* deallocate
int(* is_equal