|
ONE - On-device Neural Engine
|
#include <allocator.h>
Public Member Functions | |
| virtual | ~Allocator () |
| virtual uint8_t * | allocate (size_t size)=0 |
| virtual void | deallocate (uint8_t *p, size_t size)=0 |
| virtual uint8_t * | reallocate_downward (uint8_t *old_p, size_t old_size, size_t new_size, size_t in_use_back, size_t in_use_front) |
Protected Member Functions | |
| void | memcpy_downward (uint8_t *old_p, size_t old_size, uint8_t *new_p, size_t new_size, size_t in_use_back, size_t in_use_front) |
Definition at line 26 of file allocator.h.
|
inlinevirtual |
Definition at line 28 of file allocator.h.
|
pure virtual |
Implemented in flatbuffers::DefaultAllocator, and flatbuffers::grpc::SliceAllocator.
Referenced by reallocate_downward().
|
pure virtual |
Implemented in flatbuffers::grpc::SliceAllocator, and flatbuffers::DefaultAllocator.
Referenced by reallocate_downward().
|
inlineprotected |
Definition at line 57 of file allocator.h.
Referenced by reallocate_downward(), and flatbuffers::grpc::SliceAllocator::reallocate_downward().
|
inlinevirtual |
Reimplemented in flatbuffers::grpc::SliceAllocator.
Definition at line 41 of file allocator.h.
References allocate(), deallocate(), FLATBUFFERS_ASSERT, and memcpy_downward().
Referenced by flatbuffers::ReallocateDownward().