Developer World
Spresense SDK Library v3.3.0-375c679
MemHandle Class Reference

Memory Handler Class for "Memory Manager Lite". This is only wrapper class for convert project-specific address. More...

#include <MemManager.h>

Inheritance diagram for MemHandle:
Collaboration diagram for MemHandle:

Public Member Functions

 MemHandle (PoolId id, size_t size)
 
 MemHandle (uint8_t id, size_t size)
 
 MemHandle (const MemHandle &mh)
 
void * getVa () const
 
void * getPa () const
 
void fill (unsigned char c)
 
- Public Member Functions inherited from MemHandleBase
 MemHandleBase (PoolId id, size_t size_for_check)
 
 MemHandleBase (uint8_t id, size_t size_for_check)
 
 MemHandleBase (const MemHandleBase &mh)
 
MemHandleBaseoperator= (const MemHandleBase &mh)
 
err_t allocSeg (PoolId id, size_t size_for_check)
 
err_t allocSeg (uint8_t id, size_t size_for_check)
 
void freeSeg ()
 
bool isAvail () const
 
bool isNull () const
 
bool isSame (const MemHandleBase &mh)
 
PoolId getPoolId () const
 
NumSeg getSegNo () const
 
uint8_t getFlags () const
 
PoolAddr getAddr () const
 
PoolSize getSize () const
 
SegRefCnt getRefCnt () const
 

Detailed Description

Memory Handler Class for "Memory Manager Lite". This is only wrapper class for convert project-specific address.

Member Function Documentation

◆ getVa()

void * getVa ( ) const
inline

The getter for the virtual address on MemHandle

Returns
void* the virtual address of this handle pointing area.

◆ getPa()

void * getPa ( ) const
inline

The getter for the physical address on MemHandle.

Returns
void* the physical address of this handle pointing area.

◆ fill()

void fill ( unsigned char  c)
inline

the filler for all area on MemHandle with "c". This is for debug.

Parameters
[in]cA charactera to be filled.
Returns
void

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