Searched defs:StaticAllocator (Results 1 – 1 of 1) sorted by relevance
10 struct StaticAllocator : public flatbuffers::Allocator { struct11 explicit StaticAllocator(uint8_t *buffer) : buffer_(buffer) {} in StaticAllocator() argument13 uint8_t *allocate(size_t) override { return buffer_; } in allocate()15 void deallocate(uint8_t *, size_t) override {} in deallocate()17 uint8_t *buffer_;