|
rlib
Convenience library for useful things
|
Concrete layout of an RMem chunk.
More...
#include <rlib/rmemallocator.h>
Data Fields | |
| RRef | ref |
| RMemFlags | flags |
| RMemAllocator * | allocator |
| RMem * | parent |
| rsize | allocsize |
| rsize | size |
| rsize | alignmask |
| rsize | offset |
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_*).
| rsize RMem::alignmask |
Alignment guarantee on the visible region (power-of-two minus one).
| RMemAllocator* RMem::allocator |
Backend that produced this chunk.
| rsize RMem::allocsize |
Total underlying allocation length.
| RMemFlags RMem::flags |
RMemFlag bitmask.
| rsize RMem::offset |
Visible window offset within allocsize.
| RMem* RMem::parent |
Parent chunk for view aliases, NULL otherwise.
| RRef RMem::ref |
Refcount base (handled by r_ref_ref / r_ref_unref).
| rsize RMem::size |
Visible window length.