rlib
Convenience library for useful things
Loading...
Searching...
No Matches

Concrete layout of an RMem chunk. More...

#include <rlib/rmemallocator.h>

Data Fields

RRef ref
 
RMemFlags flags
 
RMemAllocatorallocator
 
RMemparent
 
rsize allocsize
 
rsize size
 
rsize alignmask
 
rsize offset
 

Detailed Description

Concrete layout of an RMem chunk.

Opaque handle to a refcounted memory chunk.

Fields are visible because allocator implementations need to fill them in; client code should treat the struct as opaque and use the accessor macros (r_mem_is_*).

Field Documentation

◆ alignmask

rsize RMem::alignmask

Alignment guarantee on the visible region (power-of-two minus one).

◆ allocator

RMemAllocator* RMem::allocator

Backend that produced this chunk.

◆ allocsize

rsize RMem::allocsize

Total underlying allocation length.

◆ flags

RMemFlags RMem::flags

RMemFlag bitmask.

◆ offset

rsize RMem::offset

Visible window offset within allocsize.

◆ parent

RMem* RMem::parent

Parent chunk for view aliases, NULL otherwise.

◆ ref

RRef RMem::ref

Refcount base (handled by r_ref_ref / r_ref_unref).

◆ size

rsize RMem::size

Visible window length.


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