libbio
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
bio::Bytes Class Reference

#include <Bytes.h>

Public Types

typedef unsigned char value_type
 
typedef unsigned chariterator
 
typedef const unsigned charconst_iterator
 
typedef size_t size_type
 
typedef ::std::ptrdiff_t difference_type
 

Public Member Functions

 Bytes ()
 
 Bytes (size_t size)
 
 Bytes (const void *data, size_t size)
 
template<typename InputIt >
 Bytes (InputIt first, InputIt last, typename ::std::iterator_traits< InputIt >::iterator_category *=0)
 
const unsigned charData () const
 
unsigned charData ()
 
size_t Size () const
 
bool Empty () const
 
void Clear ()
 
void Resize (size_t size)
 
void Assign (const void *data, size_t size)
 
void Append (const void *data, size_t size)
 
BytesView View () const
 
bool operator== (const Bytes &other) const
 
bool operator!= (const Bytes &other) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
unsigned charoperator[] (size_type i)
 
const unsigned charoperator[] (size_type i) const
 
void reserve (size_type n)
 
void push_back (unsigned char b)
 

Detailed Description

Owning byte buffer for binary blobs.

Member Typedef Documentation

◆ const_iterator

◆ difference_type

◆ iterator

◆ size_type

◆ value_type

Constructor & Destructor Documentation

◆ Bytes() [1/4]

bio::Bytes::Bytes ( )
inline

◆ Bytes() [2/4]

bio::Bytes::Bytes ( size_t  size)
inlineexplicit

◆ Bytes() [3/4]

bio::Bytes::Bytes ( const void data,
size_t  size 
)
inline

◆ Bytes() [4/4]

template<typename InputIt >
bio::Bytes::Bytes ( InputIt  first,
InputIt  last,
typename ::std::iterator_traits< InputIt >::iterator_category *  = 0 
)
inline

Member Function Documentation

◆ Append()

void bio::Bytes::Append ( const void data,
size_t  size 
)
inline

◆ Assign()

void bio::Bytes::Assign ( const void data,
size_t  size 
)
inline

◆ begin() [1/2]

iterator bio::Bytes::begin ( )
inline

◆ begin() [2/2]

const_iterator bio::Bytes::begin ( ) const
inline

◆ cbegin()

const_iterator bio::Bytes::cbegin ( ) const
inline

◆ cend()

const_iterator bio::Bytes::cend ( ) const
inline

◆ Clear()

void bio::Bytes::Clear ( )
inline

◆ Data() [1/2]

unsigned char * bio::Bytes::Data ( )
inline

◆ Data() [2/2]

const unsigned char * bio::Bytes::Data ( ) const
inline

◆ Empty()

bool bio::Bytes::Empty ( ) const
inline

◆ end() [1/2]

iterator bio::Bytes::end ( )
inline

◆ end() [2/2]

const_iterator bio::Bytes::end ( ) const
inline

◆ operator!=()

bool bio::Bytes::operator!= ( const Bytes other) const
inline

◆ operator==()

bool bio::Bytes::operator== ( const Bytes other) const
inline

◆ operator[]() [1/2]

unsigned char & bio::Bytes::operator[] ( size_type  i)
inline

◆ operator[]() [2/2]

const unsigned char & bio::Bytes::operator[] ( size_type  i) const
inline

◆ push_back()

void bio::Bytes::push_back ( unsigned char  b)
inline

◆ reserve()

void bio::Bytes::reserve ( size_type  n)
inline

◆ Resize()

void bio::Bytes::Resize ( size_t  size)
inline

◆ Size()

size_t bio::Bytes::Size ( ) const
inline

◆ View()

BytesView bio::Bytes::View ( ) const
inline

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