ONE - On-device Neural Engine
|
#include <flatbuffers.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 677 of file flatbuffers.h.
|
inlinevirtual |
Definition at line 680 of file flatbuffers.h.
|
pure virtual |
Implemented in flatbuffers::DefaultAllocator, and flatbuffers::grpc::SliceAllocator.
Referenced by flatbuffers::Allocate(), and reallocate_downward().
|
pure virtual |
Implemented in flatbuffers::grpc::SliceAllocator, and flatbuffers::DefaultAllocator.
Referenced by flatbuffers::Deallocate(), and reallocate_downward().
|
inlineprotected |
Definition at line 708 of file flatbuffers.h.
Referenced by reallocate_downward(), and flatbuffers::grpc::SliceAllocator::reallocate_downward().
|
inlinevirtual |
Reimplemented in flatbuffers::grpc::SliceAllocator.
Definition at line 693 of file flatbuffers.h.
References allocate(), deallocate(), FLATBUFFERS_ASSERT, and memcpy_downward().
Referenced by flatbuffers::ReallocateDownward().