rlib
Convenience library for useful things
Loading...
Searching...
No Matches
RMemAllocationParams Struct Reference

Allocation-time constraints passed to r_mem_allocator_alloc and the merge / take helpers. More...

#include <rlib/rmemallocator.h>

Data Fields

RMemFlags flags
 
rsize alignmask
 
rsize prefix
 
rsize padding
 

Detailed Description

Allocation-time constraints passed to r_mem_allocator_alloc and the merge / take helpers.

flags seed the resulting chunk; alignmask, prefix and padding constrain the layout (alignment of the visible region plus pad bytes before / after).

Field Documentation

◆ alignmask

rsize RMemAllocationParams::alignmask

Power-of-two-minus-one alignment of the visible region (e.g. 0x0F = 16-byte aligned).

◆ flags

RMemFlags RMemAllocationParams::flags

Initial flags on the produced chunk.

◆ padding

rsize RMemAllocationParams::padding

Bytes of guaranteed-zero padding after the visible region.

◆ prefix

rsize RMemAllocationParams::prefix

Bytes of guaranteed-zero padding before the visible region.


The documentation for this struct was generated from the following file: