staticlib_io  1.2.11
 All Classes Namespaces Files Functions Variables
Public Member Functions | List of all members
staticlib::io::hex_sink< Sink > Class Template Reference

Sink wrapper that encodes data into Hexadecimal. More...

#include <staticlib/io/hex_sink.hpp>

Public Member Functions

 hex_sink (Sink &&sink)
 Constructor, created sink wrapper will own specified sink.
 hex_sink (const hex_sink &)
 Deleted copy constructor.
hex_sink & operator= (const hex_sink &)
 Deleted copy assignment operator.
 hex_sink (hex_sink &&other) STATICLIB_NOEXCEPT
 Move constructor.
hex_sink & operator= (hex_sink &&other) STATICLIB_NOEXCEPT
 Move assignment operator.
std::streamsize write (span< const char > span)
 Hex encoding write implementation.
std::streamsize flush ()
 Flushes destination sink.
Sink & get_sink ()
 Underlying sink accessor.

Detailed Description

template<typename Sink>
class staticlib::io::hex_sink< Sink >

Sink wrapper that encodes data into Hexadecimal.

Constructor & Destructor Documentation

template<typename Sink >
staticlib::io::hex_sink< Sink >::hex_sink ( Sink &&  sink)
inlineexplicit

Constructor, created sink wrapper will own specified sink.

Parameters
sinkdestination sink
template<typename Sink >
staticlib::io::hex_sink< Sink >::hex_sink ( const hex_sink< Sink > &  )

Deleted copy constructor.

Parameters
otherinstance
template<typename Sink >
staticlib::io::hex_sink< Sink >::hex_sink ( hex_sink< Sink > &&  other)
inline

Move constructor.

Parameters
otherother instance

Member Function Documentation

template<typename Sink >
std::streamsize staticlib::io::hex_sink< Sink >::flush ( )
inline

Flushes destination sink.

Returns
number of bytes flushed
template<typename Sink >
Sink& staticlib::io::hex_sink< Sink >::get_sink ( )
inline

Underlying sink accessor.

Returns
underlying sink reference
template<typename Sink >
hex_sink& staticlib::io::hex_sink< Sink >::operator= ( const hex_sink< Sink > &  )

Deleted copy assignment operator.

Parameters
otherinstance
Returns
this instance
template<typename Sink >
hex_sink& staticlib::io::hex_sink< Sink >::operator= ( hex_sink< Sink > &&  other)
inline

Move assignment operator.

Parameters
otherother instance
Returns
this instance
template<typename Sink >
std::streamsize staticlib::io::hex_sink< Sink >::write ( span< const char >  span)
inline

Hex encoding write implementation.

Parameters
spanbuffer span
Returns
number of bytes processed

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