|
libmicroemu 0.2.0
ARM Microcontroller Emulator Library
|
Optional assignable memory class. More...
#include <mem_rw_optional.h>
Public Member Functions | |
| MemRwOptional (u8 *const buf, const me_size_t buf_size, const me_adr_t vadr_offset) | |
| Constructor. | |
| virtual | ~MemRwOptional ()=default |
| Destructor. | |
| MemRwOptional (const MemRwOptional &r_src)=default | |
| Copy constructor for MemOpt. | |
| MemRwOptional & | operator= (const MemRwOptional &r_src)=default |
| Copy assignment operator for MemOpt. | |
| MemRwOptional (MemRwOptional &&r_src)=default | |
| Move constructor for MemOpt. | |
| MemRwOptional & | operator= (MemRwOptional &&r_src)=default |
| Move assignment operator for MemOpt. | |
| template<typename T> | |
| ReadResult< T > | Read (TCpuAccessor &cpua, me_adr_t vadr) const |
| template<typename T> | |
| WriteResult< T > | Write (TCpuAccessor &cpua, me_adr_t vadr, T value) const |
| bool | IsVAdrInRange (me_adr_t vadr) const |
Static Public Attributes | |
| static constexpr bool | kReadOnly = false |
Optional assignable memory class.
This class represent an memory area which can be read and written to. The memory area is represented by a buffer and a size. If the buffer is nullptr or the size is 0, the memory behaves as if it is not present.
| Id | the id of the memory |
| TEndianessC | the endianess converter |
|
default |
Copy constructor for MemOpt.
| r_src | the object to be copied |
|
default |
Move constructor for MemOpt.
| r_src | the object to be moved |
|
default |
Copy assignment operator for MemOpt.
| r_src | the object to be copied |
|
default |
Move assignment operator for MemOpt.
| r_src | the object to be moved |