#include <Data.h>
|
| MMapedData (int fd, const std::ptrdiff_t mmap_offset, const size_t mmap_size, const std::ptrdiff_t data_offset, const size_t data_size) |
|
| ~MMapedData () |
|
const uint8_t * | base (void) const override |
|
| ExternalData (const uint8_t *base, size_t size) |
|
size_t | size (void) const override |
|
virtual | ~Data ()=default |
|
Definition at line 73 of file Data.h.
◆ MMapedData()
onert::ir::MMapedData::MMapedData |
( |
int |
fd, |
|
|
const std::ptrdiff_t |
mmap_offset, |
|
|
const size_t |
mmap_size, |
|
|
const std::ptrdiff_t |
data_offset, |
|
|
const size_t |
data_size |
|
) |
| |
|
inline |
Definition at line 76 of file Data.h.
79 _mmap_base(
80 static_cast<uint8_t *>(mmap(NULL, mmap_size, PROT_READ, MAP_PRIVATE, fd, mmap_offset))),
81 _mmap_size(mmap_size), _offset(data_offset - mmap_offset)
82 {
83
84 }
ExternalData(const uint8_t *base, size_t size)
◆ ~MMapedData()
onert::ir::MMapedData::~MMapedData |
( |
| ) |
|
|
inline |
Definition at line 87 of file Data.h.
88 {
89 if (_mmap_size > 0)
90 {
91 munmap(const_cast<uint8_t *>(_mmap_base), _mmap_size);
92 }
93 }
◆ base()
const uint8_t * onert::ir::MMapedData::base |
( |
void |
| ) |
const |
|
inlineoverridevirtual |
The documentation for this class was generated from the following file:
- runtime/onert/core/include/ir/Data.h