Searched refs:MemoryAllocation (Results 1 – 4 of 4) sorted by relevance
81 MemoryAllocation::MemoryAllocation(const void* ptr, size_t num_bytes, in MemoryAllocation() function in tflite::MemoryAllocation107 MemoryAllocation::~MemoryAllocation() {} in ~MemoryAllocation()109 const void* MemoryAllocation::base() const { return buffer_; } in base()111 size_t MemoryAllocation::bytes() const { return buffer_size_bytes_; } in bytes()113 bool MemoryAllocation::valid() const { return buffer_ != nullptr; } in valid()
95 class MemoryAllocation : public Allocation {100 MemoryAllocation(const void* ptr, size_t num_bytes,102 virtual ~MemoryAllocation();
107 new MemoryAllocation(caller_owned_buffer, buffer_size, error_reporter)); in BuildFromBuffer()
1425 * Add check for memory alignment to MemoryAllocation::MemoryAllocation()1708 * Add check for correct memory alignment to `MemoryAllocation::MemoryAllocation()`.