CVB++ 14.1
Buffer Class Reference

Buffer class implementing a buffer. More...

#include <cvb/buffer.hpp>

Inherits BufferBase.

Static Public Member Functions

static BufferPtr FromHandle (HandleGuard< BufferBase > &&guard)
 Creates a buffer from a classic API handle. More...
 

Additional Inherited Members

- Public Member Functions inherited from BufferBase
void * Handle () const noexcept
 Classic API buffer handle. More...
 
std::uint8_tBasePtr () const noexcept
 Gets the pointer to the start of this buffer. More...
 
size_t Size () const noexcept
 Gets the actual size of this buffer in bytes. More...
 
size_t Capacity () const noexcept
 Gets the allocated size of this buffer in bytes. More...
 

Detailed Description

Buffer class implementing a buffer.

Member Function Documentation

◆ FromHandle()

static BufferPtr FromHandle ( HandleGuard< BufferBase > &&  guard)
inlinestatic

Creates a buffer from a classic API handle.

Parameters
[in]guardLife time guard for C-API handle.