MySQL 8.4.2
Source Code Documentation
http::base::IOBuffer Class Reference

#include <io_buffer.h>

Public Types

using CIterator = std::string::const_iterator
 

Public Member Functions

 IOBuffer ()=default
 
 IOBuffer (const char *data, size_t length)
 
 IOBuffer (std::string value)
 
virtual ~IOBuffer ()
 
virtual void clear ()
 
virtual size_t length () const
 
virtual CIterator begin () const
 
virtual CIterator end () const
 
virtual std::vector< uint8_t > pop_front (size_t size)
 
virtual std::vector< uint8_t > copy (size_t size) const
 
virtual void add (const char *data, size_t length)
 
virtual const std::string & get () const
 
virtual std::string & get ()
 

Private Attributes

std::string content_
 

Member Typedef Documentation

◆ CIterator

using http::base::IOBuffer::CIterator = std::string::const_iterator

Constructor & Destructor Documentation

◆ IOBuffer() [1/3]

http::base::IOBuffer::IOBuffer ( )
default

◆ IOBuffer() [2/3]

http::base::IOBuffer::IOBuffer ( const char *  data,
size_t  length 
)
inline

◆ IOBuffer() [3/3]

http::base::IOBuffer::IOBuffer ( std::string  value)
inline

◆ ~IOBuffer()

http::base::IOBuffer::~IOBuffer ( )
virtualdefault

Member Function Documentation

◆ add()

virtual void http::base::IOBuffer::add ( const char *  data,
size_t  length 
)
inlinevirtual

◆ begin()

virtual CIterator http::base::IOBuffer::begin ( ) const
inlinevirtual

◆ clear()

virtual void http::base::IOBuffer::clear ( )
inlinevirtual

◆ copy()

virtual std::vector< uint8_t > http::base::IOBuffer::copy ( size_t  size) const
inlinevirtual

◆ end()

virtual CIterator http::base::IOBuffer::end ( ) const
inlinevirtual

◆ get() [1/2]

virtual std::string & http::base::IOBuffer::get ( )
inlinevirtual

◆ get() [2/2]

virtual const std::string & http::base::IOBuffer::get ( ) const
inlinevirtual

◆ length()

virtual size_t http::base::IOBuffer::length ( ) const
inlinevirtual

◆ pop_front()

virtual std::vector< uint8_t > http::base::IOBuffer::pop_front ( size_t  size)
inlinevirtual

Member Data Documentation

◆ content_

std::string http::base::IOBuffer::content_
private

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