staticlib_io  1.2.11
 All Classes Namespaces Files Functions Variables
Public Member Functions | List of all members
staticlib::io::array_source Class Reference

Source implementation that reads data from the specified char buffer. More...

#include <staticlib/io/array_source.hpp>

Public Member Functions

 array_source (const char *src_buf, size_t src_buf_len)
 Constructor.
 array_source (span< const char > src_buf)
 Constructor.
 array_source (span< char > src_buf)
 Constructor.
 array_source (const array_source &other)
 Copy constructor.
array_source & operator= (const array_source &other)
 Copy assignment operator.
 array_source (array_source &&other) STATICLIB_NOEXCEPT
 Move constructor.
array_source & operator= (array_source &&other) STATICLIB_NOEXCEPT
 Move assignment operator.
std::streamsize read (span< char > span)
 Buffered read implementation.
const char * get_array ()
 Source buffer accessor.

Detailed Description

Source implementation that reads data from the specified char buffer.

Buffer is not owned by this source.

Constructor & Destructor Documentation

staticlib::io::array_source::array_source ( const char *  src_buf,
size_t  src_buf_len 
)
inline

Constructor.

Parameters
src_bufsource buffer
src_buf_lensource buffer length
staticlib::io::array_source::array_source ( span< const char >  src_buf)
inline

Constructor.

Parameters
src_bufsource span
staticlib::io::array_source::array_source ( span< char >  src_buf)
inline

Constructor.

Parameters
src_bufsource span
staticlib::io::array_source::array_source ( const array_source &  other)
inline

Copy constructor.

Parameters
otherinstance
staticlib::io::array_source::array_source ( array_source &&  other)
inline

Move constructor.

Parameters
otherother instance

Member Function Documentation

const char* staticlib::io::array_source::get_array ( )
inline

Source buffer accessor.

Returns
source buffer
array_source& staticlib::io::array_source::operator= ( const array_source &  other)
inline

Copy assignment operator.

Parameters
otherinstance
Returns
this instance
array_source& staticlib::io::array_source::operator= ( array_source &&  other)
inline

Move assignment operator.

Parameters
otherother instance
Returns
this instance
std::streamsize staticlib::io::array_source::read ( span< char >  span)
inline

Buffered read implementation.

Parameters
spanbuffer span
Returns
number of bytes processed

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