|
rlib
Convenience library for useful things
|
Scope object carried by an active mapping. More...
#include <rlib/rmemallocator.h>
Data Fields | |
| ruint8 * | data |
| rsize | size |
| rsize | allocsize |
| RMemMapFlags | flags |
| RMem * | mem |
Scope object carried by an active mapping.
Populated by r_mem_map, passed back unchanged to r_mem_unmap so the allocator can release whatever resources the mapping acquired (file handles, GPU sync points, etc.). data is the bytes the caller can touch; size is the visible-window length, allocsize is the underlying allocation length.
| rsize RMemMapInfo::allocsize |
Underlying allocation length in bytes.
| ruint8* RMemMapInfo::data |
Pointer to the first visible byte.
| RMemMapFlags RMemMapInfo::flags |
Mapping access flags supplied to r_mem_map.
| RMem* RMemMapInfo::mem |
Owning chunk (refcounted by r_mem_map, released by r_mem_unmap).
| rsize RMemMapInfo::size |
Visible window length in bytes.