88 [[nodiscard]]
bool create(
size_t size,
size_t depth, const
FastBuffer::
Config& config = {}) noexcept;
104 [[nodiscard]]
size_t depth() const noexcept {
return slots_.size(); }
111 [[nodiscard]]
size_t size() const noexcept {
return slots_.empty() ? 0 : slots_.front().size(); }
Owns a fixed set of equally sized allocations and recycles them in round-robin order.
Definition: fast_buffer_pool.h:73
FastBufferPool() noexcept=default
void clear() noexcept
Releases the pool's slot references.
size_t depth() const noexcept
Returns the slot count.
Definition: fast_buffer_pool.h:104
size_t size() const noexcept
Returns the byte count of every slot.
Definition: fast_buffer_pool.h:111
bool acquire(FastBuffer &buffer) noexcept
Clears buffer and retains the next slot that no local holder or live importer references.
Platform-independent buffer with a Header and a pointer-free wire envelope.
#define VLINK_EXPORT
Definition: macros.h:81
#define VLINK_DISALLOW_COPY_AND_ASSIGN(classname)
Deletes the copy constructor and copy-assignment operator of classname.
Definition: macros.h:174
Holds a local memory address and an owned provider reference.
Definition: fast_buffer.h:138