MySQL 9.1.0
Source Code Documentation
http::base::details::owned_buffer Class Reference

#include <owned_buffer.h>

Public Member Functions

 owned_buffer (size_t n=0)
 
 owned_buffer (owned_buffer &&other)
 
void * data () const noexcept
 
size_t size () const noexcept
 
void reset ()
 
owned_bufferoperator+= (size_t n)
 
 operator net::const_buffer () const
 
size_t space_left () const
 
bool empty () const
 
size_t write (const uint8_t *source, size_t source_size)
 

Private Attributes

std::unique_ptr< uint8_t[]> buffer_
 
const size_t buffer_size_
 
uint8_t * data_movable_
 
size_t data_size_
 

Constructor & Destructor Documentation

◆ owned_buffer() [1/2]

http::base::details::owned_buffer::owned_buffer ( size_t  n = 0)
inline

◆ owned_buffer() [2/2]

http::base::details::owned_buffer::owned_buffer ( owned_buffer &&  other)
inline

Member Function Documentation

◆ data()

void * http::base::details::owned_buffer::data ( ) const
inlinenoexcept

◆ empty()

bool http::base::details::owned_buffer::empty ( ) const
inline

◆ operator net::const_buffer()

http::base::details::owned_buffer::operator net::const_buffer ( ) const
inline

◆ operator+=()

owned_buffer & http::base::details::owned_buffer::operator+= ( size_t  n)
inline

◆ reset()

void http::base::details::owned_buffer::reset ( )
inline

◆ size()

size_t http::base::details::owned_buffer::size ( ) const
inlinenoexcept

◆ space_left()

size_t http::base::details::owned_buffer::space_left ( ) const
inline

◆ write()

size_t http::base::details::owned_buffer::write ( const uint8_t *  source,
size_t  source_size 
)
inline

Member Data Documentation

◆ buffer_

std::unique_ptr<uint8_t[]> http::base::details::owned_buffer::buffer_
private

◆ buffer_size_

const size_t http::base::details::owned_buffer::buffer_size_
private

◆ data_movable_

uint8_t* http::base::details::owned_buffer::data_movable_
private

◆ data_size_

size_t http::base::details::owned_buffer::data_size_
private

The documentation for this class was generated from the following file: