145 class FastBufferPool;
182 friend struct zerocopy::FastBuffer;
185 [[nodiscard]]
bool create(
size_t size,
const zerocopy::FastBuffer::Config& config,
186 zerocopy::FastBuffer::Buffer& buffer) noexcept;
188 static void retain(
const zerocopy::FastBuffer::Buffer& source, zerocopy::FastBuffer::Buffer& buffer) noexcept;
190 void release(zerocopy::FastBuffer::Buffer& buffer) noexcept;
192 [[nodiscard]]
bool reclaim(
const zerocopy::FastBuffer::Buffer& buffer) noexcept;
194 [[nodiscard]]
bool import_native(
const void* handle, zerocopy::FastBuffer::Buffer& buffer) noexcept;
196 [[nodiscard]]
size_t get_handle_size(
const zerocopy::FastBuffer::Buffer& buffer)
const noexcept;
198 [[nodiscard]]
bool export_handle(
const zerocopy::FastBuffer::Buffer& buffer,
Bytes& descriptor) noexcept;
200 [[nodiscard]]
bool import_handle(
const Bytes& descriptor, zerocopy::FastBuffer::Buffer& buffer) noexcept;
202 [[nodiscard]]
static const zerocopy::FastBuffer::Buffer& native_buffer(
203 const zerocopy::FastBuffer::Buffer& buffer) noexcept;
210 std::unique_ptr<Impl> impl_;
Fixed-size 128-byte buffer holder with SBO, five ownership modes and integrated codecs.
Definition: bytes.h:120
Loads one FastBufferPluginInterface on first use.
Definition: fast_buffer_manager.h:158
bool is_valid() const
Reports whether the built-in or loaded provider is available.
FastBufferPluginInterface * get_interface() const
Returns the provider owned by this manager.
static FastBufferManager & get()
Returns the lazily constructed process-wide manager.
Supplies platform buffers without exposing a vendor runtime to VLink.
Definition: fast_buffer_plugin_interface.h:127
Owns a fixed set of equally sized allocations and recycles them in round-robin order.
Definition: fast_buffer_pool.h:73
Vendor-independent allocation and sharing contract for zerocopy::FastBuffer.
#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