|
errno_t | StepDecode (size_t *written, void *dst, size_t dstsize, const char *src, size_t srcsize) noexcept |
| Runs split decoding of Base64. More...
|
|
template<size_t N> |
errno_t | StepDecode (size_t *written, nlib_byte_t(&dst)[N], const char *src, size_t srcsize) noexcept |
| A template overload of the above function.
|
|
std::pair< errno_t, size_t > | StepDecode (void *dst, size_t dstsize, const char *src, size_t srcsize) noexcept |
| Runs split decoding of Base64. Returns a pair of the error value and the number of bytes written to dst.
|
|
template<size_t N> |
std::pair< errno_t, size_t > | StepDecode (nlib_byte_t(&dst)[N], const char *src, size_t srcsize) noexcept |
| A template overload of the above function.
|
|
errno_t | Close (size_t *written, void *dst, size_t dstsize) noexcept |
| Finishes split decoding of Base64. More...
|
|
template<size_t N> |
errno_t | Close (size_t *written, nlib_byte_t(&dst)[N]) noexcept |
| A template overload of the above function.
|
|
std::pair< errno_t, size_t > | Close (void *dst, size_t dstsize) noexcept |
| Finishes split decoding of Base64. Returns a pair of the error value and the number of bytes written to dst.
|
|
template<size_t N> |
std::pair< errno_t, size_t > | Close (nlib_byte_t(&dst)[N]) noexcept |
| A template overload of the above function.
|
|
| operator bool () const |
| Returns true if the object has been initialized and an error has not occurred inside, or returns false if an error has occurred inside.
|
|
|
constexpr | Base64Decoder () noexcept |
| Instantiates the object with default parameters (default constructor).
|
|
errno_t | Init (CharOption char_option=kBase64Default) noexcept |
| Initializes the object by specifying the 62nd and 63rd characters. More...
|
|
|
static size_t | GetRequiredSize (size_t srcsize) noexcept |
| Calculates the size of the memory space required for decoding the data. More...
|
|
static errno_t | Decode (size_t *written, void *dst, size_t dstsize, const char *src, CharOption char_option=kBase64Default) noexcept |
| Decodes data in batch. More...
|
|
template<size_t N> |
static errno_t | Decode (size_t *written, nlib_byte_t(&dst)[N], const char *src, CharOption char_option=kBase64Default) noexcept |
| A template overload of the above function.
|
|
static std::pair< errno_t, size_t > | Decode (void *dst, size_t dstsize, const char *src, CharOption char_option=kBase64Default) noexcept |
| Decodes data in batch. Returns a pair of the error value and the output data size.
|
|
template<size_t N> |
static std::pair< errno_t, size_t > | Decode (nlib_byte_t(&dst)[N], const char *src, CharOption char_option=kBase64Default) noexcept |
| A template overload of the above function.
|
|
static errno_t | Decode (UniquePtr< uint8_t[]> &dst, size_t *dstsize, const char *src, CharOption char_option=kBase64Default) noexcept |
| Decodes data in batch. More...
|
|
static std::tuple< errno_t, std::unique_ptr< nlib_byte_t[]>, size_t > | Decode (const char *src, CharOption char_option=kBase64Default) noexcept |
| Decodes the data at a time and returns them after allocating memory inside.
|
|
static errno_t | DecodeInplace (size_t *written, char *src, CharOption char_option=kBase64Default) noexcept |
| Decodes data immediately. More...
|
|
Decodes Base64. This class supports various variants of Base64.
- Description
- This class supports batch decoding, split decoding and in-place batch decoding of Base64. Various variants of Base64 can be supported by specifying CharOption type values. Data containing newline and/or padding characters can also be decoded.
- See also
- https://www.ietf.org/rfc/rfc2045.txt
- The transition of the object state.
- The overview of the object state transitions is described below:
Definition at line 140 of file Base64.h.