Lines Matching refs:BlockAllocator
51 // BlockAllocator allocates memory block with given size at once, and
57 struct BlockAllocator {
58 BlockAllocator(size_t block_size, size_t isolation_threshold)
66 ~BlockAllocator() { reset(); }
68 BlockAllocator(BlockAllocator &&other) noexcept
74 BlockAllocator &operator=(BlockAllocator &&other) noexcept {
85 BlockAllocator(const BlockAllocator &) = delete;
86 BlockAllocator &operator=(const BlockAllocator &) = delete;
182 template <typename BlockAllocator>
183 StringRef make_string_ref(BlockAllocator &alloc, const StringRef &src) {
222 template <typename BlockAllocator, typename... Args>
223 StringRef concat_string_ref(BlockAllocator &alloc, Args &&...args) {
238 template <typename BlockAllocator, typename... Args>
239 StringRef realloc_concat_string_ref(BlockAllocator &alloc,
265 template <typename BlockAllocator>
266 ByteRef make_byte_ref(BlockAllocator &alloc, size_t size) {