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

decoder stream buffer. More...

#include <base64.hpp>

Inheritance diagram for join::Decoderbuf:
Collaboration diagram for join::Decoderbuf:

Public Member Functions

 Decoderbuf ()
 create decoder stream buffer instance.
 
 Decoderbuf (const Decoderbuf &other)=delete
 copy constructor.
 
Decoderbufoperator= (const Decoderbuf &other)=delete
 copy assignment operator.
 
 Decoderbuf (Decoderbuf &&other)
 move constructor.
 
Decoderbufoperator= (Decoderbuf &&other)
 move assignment operator.
 
virtual ~Decoderbuf ()=default
 destroy encoder stream buffer instance.
 
BytesArray get ()
 get decoded data.
 

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 _decodectx
 decode context.
 
BytesArray _out
 output buffer.
 

Static Protected Attributes

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

Detailed Description

decoder stream buffer.

Constructor & Destructor Documentation

◆ Decoderbuf() [1/3]

Decoderbuf::Decoderbuf ( )

create decoder stream buffer instance.

◆ Decoderbuf() [2/3]

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

copy constructor.

Parameters
otherother object to copy.

◆ Decoderbuf() [3/3]

Decoderbuf::Decoderbuf ( Decoderbuf && other)

move constructor.

Parameters
otherother object to move.

◆ ~Decoderbuf()

virtual join::Decoderbuf::~Decoderbuf ( )
virtualdefault

destroy encoder stream buffer instance.

Member Function Documentation

◆ get()

BytesArray Decoderbuf::get ( )

get decoded data.

Returns
decoded data.

◆ operator=() [1/2]

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

copy assignment operator.

Parameters
otherother object to assign.
Returns
current object.

◆ operator=() [2/2]

Decoderbuf & Decoderbuf::operator= ( Decoderbuf && other)

move assignment operator.

Parameters
otherother object to assign.
Returns
current object.

◆ overflow()

Decoderbuf::int_type Decoderbuf::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::Decoderbuf::_buf
protected

internal buffer.

◆ _bufsize

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

internal buffer size.

◆ _decodectx

EvpEncodeCtxPtr join::Decoderbuf::_decodectx
protected

decode context.

◆ _out

BytesArray join::Decoderbuf::_out
protected

output buffer.


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