Base64 decoding session.
More...
#include <stdex/base64.hpp>
|
|
| base64_dec () noexcept |
| | Constructs blank decoding session.
|
| |
| template<class _Ty , class _Ax , class _Tchr > |
| void | decode (std::vector< _Ty, _Ax > &out, bool &is_last, const _Tchr *data, size_t size) |
| | Decodes one block of information, and appends it to the output.
|
| |
|
void | clear () noexcept |
| | Resets decoding session.
|
| |
| size_t | dec_size (size_t size) const noexcept |
| | Returns maximum decoded size.
|
| |
|
|
template<class _Ty , class _Ax > |
| size_t | decode (std::vector< _Ty, _Ax > &out) |
| | Decodes one complete internal buffer of data.
|
| |
|
|
uint8_t | m_buf [4] |
| | Internal buffer.
|
| |
|
size_t | m_num |
| | Number of bytes used in m_buf
|
| |
◆ dec_size()
| size_t stdex::base64_dec::dec_size |
( |
size_t |
size | ) |
const |
|
inlinenoexcept |
Returns maximum decoded size.
- Parameters
-
| [in] | size | Number of bytes to decode |
- Returns
- Maximum number of bytes for the decoded data of
size length
◆ decode()
template<class _Ty , class _Ax , class _Tchr >
| void stdex::base64_dec::decode |
( |
std::vector< _Ty, _Ax > & |
out, |
|
|
bool & |
is_last, |
|
|
const _Tchr * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Decodes one block of information, and appends it to the output.
- Parameters
-
| [in,out] | out | Output |
| [in] | is_last | Was this the last block of data? |
| [in] | data | Data to decode |
| [in] | size | Length of data in bytes |
The documentation for this class was generated from the following file: