join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::Encoderbuf Class Reference

encoder stream buffer. More...

#include <base64.hpp>

Inheritance diagram for join::Encoderbuf:
Collaboration diagram for join::Encoderbuf:

Public Member Functions

 Encoderbuf ()
 create encoder stream buffer instance.
 
 Encoderbuf (const Encoderbuf &other)=delete
 copy constructor.
 
Encoderbufoperator= (const Encoderbuf &other)=delete
 copy assignment operator.
 
 Encoderbuf (Encoderbuf &&other)
 move constructor.
 
Encoderbufoperator= (Encoderbuf &&other)
 move assignment operator.
 
virtual ~Encoderbuf ()=default
 destroy encoder stream buffer instance.
 
std::string get ()
 get encoded string.
 

Protected Member Functions

virtual int_type overflow (int_type c=traits_type::eof()) override
 writes characters to the associated output sequence from the put area.
 

Protected Attributes

std::unique_ptr< char[]> _buf
 internal buffer.
 
EvpEncodeCtxPtr _encodectx
 encode context.
 
std::string _out
 output buffer.
 

Static Protected Attributes

static const std::streamsize _bufsize = 256
 internal buffer size.
 

Detailed Description

encoder stream buffer.

Constructor & Destructor Documentation

◆ Encoderbuf() [1/3]

Encoderbuf::Encoderbuf ( )

create encoder stream buffer instance.

◆ Encoderbuf() [2/3]

join::Encoderbuf::Encoderbuf ( const Encoderbuf & other)
delete

copy constructor.

Parameters
otherother object to copy.

◆ Encoderbuf() [3/3]

Encoderbuf::Encoderbuf ( Encoderbuf && other)

move constructor.

Parameters
otherother object to move.

◆ ~Encoderbuf()

virtual join::Encoderbuf::~Encoderbuf ( )
virtualdefault

destroy encoder stream buffer instance.

Member Function Documentation

◆ get()

std::string Encoderbuf::get ( )

get encoded string.

Returns
encoded string.

◆ operator=() [1/2]

Encoderbuf & join::Encoderbuf::operator= ( const Encoderbuf & other)
delete

copy assignment operator.

Parameters
otherother object to assign.
Returns
current object.

◆ operator=() [2/2]

Encoderbuf & Encoderbuf::operator= ( Encoderbuf && other)

move assignment operator.

Parameters
otherother object to assign.
Returns
current object.

◆ overflow()

Encoderbuf::int_type Encoderbuf::overflow ( int_type c = traits_type::eof ())
overrideprotectedvirtual

writes characters to the associated output sequence from the put area.

Parameters
cthe character to store in the put area.
Returns
EOF on failure, some other value on success.

Member Data Documentation

◆ _buf

std::unique_ptr<char []> join::Encoderbuf::_buf
protected

internal buffer.

◆ _bufsize

const std::streamsize join::Encoderbuf::_bufsize = 256
staticprotected

internal buffer size.

◆ _encodectx

EvpEncodeCtxPtr join::Encoderbuf::_encodectx
protected

encode context.

◆ _out

std::string join::Encoderbuf::_out
protected

output buffer.


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