Implementation of memory buffer locked in physical memory. More...
Public Member Functions | |
ResidentBuffer (size_t elem_count) | |
Constructor, based on required amount of elements. More... | |
~ResidentBuffer () | |
Destructor. | |
T * | base () const |
Return base address of the buffer. More... | |
size_t | count () const |
Return the number of elements in the buffer. More... | |
bool | isLocked () const |
Check if the buffer is actually locked. More... | |
SysErrorCode | lockErrorCode () const |
Get error code when not locked. More... | |
Implementation of memory buffer locked in physical memory.
T | Type of the buffer element. |
ts::ResidentBuffer< T >::ResidentBuffer | ( | size_t | elem_count | ) |
Constructor, based on required amount of elements.
Abort application if memory allocation fails. Do not abort if memory locking fails.
[in] | elem_count | Number of T elements. |
|
inline |
Check if the buffer is actually locked.
|
inline |
Get error code when not locked.
|
inline |
Return base address of the buffer.
|
inline |
Return the number of elements in the buffer.