Lines Matching full:allocator
20 #include "flatbuffers/allocator.h"
26 class DefaultAllocator : public Allocator {
37 // These functions allow for a null allocator to mean use the default allocator,
40 // allocator, or having to move it between the classes that may own it.
41 inline uint8_t *Allocate(Allocator *allocator, size_t size) { in Allocate() argument
42 return allocator ? allocator->allocate(size) in Allocate()
46 inline void Deallocate(Allocator *allocator, uint8_t *p, size_t size) { in Deallocate() argument
47 if (allocator) in Deallocate()
48 allocator->deallocate(p, size); in Deallocate()
53 inline uint8_t *ReallocateDownward(Allocator *allocator, uint8_t *old_p, in ReallocateDownward() argument
56 return allocator ? allocator->reallocate_downward(old_p, old_size, new_size, in ReallocateDownward()