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

Scope object carried by an active mapping. More...

#include <rlib/rmemallocator.h>

Data Fields

ruint8data
 
rsize size
 
rsize allocsize
 
RMemMapFlags flags
 
RMemmem
 

Detailed Description

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.

Field Documentation

◆ allocsize

rsize RMemMapInfo::allocsize

Underlying allocation length in bytes.

◆ data

ruint8* RMemMapInfo::data

Pointer to the first visible byte.

◆ flags

RMemMapFlags RMemMapInfo::flags

Mapping access flags supplied to r_mem_map.

◆ mem

RMem* RMemMapInfo::mem

Owning chunk (refcounted by r_mem_map, released by r_mem_unmap).

◆ size

rsize RMemMapInfo::size

Visible window length in bytes.


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