ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::ir::CachedData Class Referencefinal

#include <Data.h>

Collaboration diagram for onert::ir::CachedData:

Public Member Functions

 CachedData (const uint8_t *base, size_t size)
 
 ~CachedData ()
 
size_t size (void) const override
 
const uint8_t * base (void) const override
 
- Public Member Functions inherited from onert::ir::Data
virtual ~Data ()=default
 

Detailed Description

Definition at line 36 of file Data.h.

Constructor & Destructor Documentation

◆ CachedData()

onert::ir::CachedData::CachedData ( const uint8_t *  base,
size_t  size 
)
inline

Definition at line 39 of file Data.h.

39 : _base{new uint8_t[size]}, _size{size}
40 {
41 std::copy(base, base + size, _base);
42 }
size_t size(void) const override
Definition Data.h:48
const uint8_t * base(void) const override
Definition Data.h:49

References base(), and size().

◆ ~CachedData()

onert::ir::CachedData::~CachedData ( )
inline

Definition at line 45 of file Data.h.

45{ delete[] _base; }

Member Function Documentation

◆ base()

const uint8_t * onert::ir::CachedData::base ( void  ) const
inlineoverridevirtual

Implements onert::ir::Data.

Definition at line 49 of file Data.h.

49{ return _base; }

Referenced by CachedData().

◆ size()

size_t onert::ir::CachedData::size ( void  ) const
inlineoverridevirtual

Implements onert::ir::Data.

Definition at line 48 of file Data.h.

48{ return _size; }

Referenced by CachedData().


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