|
errno_t | StepEncode (size_t *written, char *dst, size_t dstsize, const void *src, size_t srcsize) noexcept |
| Runs split encoding of Base64. No null character will be appended to the end. More...
|
|
template<size_t N> |
errno_t | StepEncode (size_t *written, char(&dst)[N], const void *src, size_t srcsize) noexcept |
| A template overload of the above function.
|
|
std::pair< errno_t, size_t > | StepEncode (char *dst, size_t dstsize, const void *src, size_t srcsize) noexcept |
| Runs split encoding of Base64. No null character will be appended to the end. 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 > | StepEncode (char(&dst)[N], const void *src, size_t srcsize) noexcept |
| A template overload of the above function.
|
|
errno_t | Close (size_t *written, char *dst, size_t dstsize, bool padding) noexcept |
| Finishes split encoding of Base64. No null character will be appended to the end. More...
|
|
template<size_t N> |
errno_t | Close (size_t *written, char(&dst)[N], bool padding) noexcept |
| A template overload of the above function.
|
|
std::pair< errno_t, size_t > | Close (char *dst, size_t dstsize, bool padding) noexcept |
| Finishes split encoding of Base64. No null character will be appended to the end. 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 (char(&dst)[N], bool padding) 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 | Base64Encoder () 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 encoding the data. More...
|
|
static errno_t | Encode (char *dst, size_t dstsize, const void *src, size_t srcsize, CharOption char_option=kBase64Default, bool padding=false) noexcept |
| Encodes data in batch. More...
|
|
template<size_t N> |
static errno_t | Encode (char(&dst)[N], const void *src, size_t srcsize, CharOption char_option=kBase64Default, bool padding=false) noexcept |
| A template overload of the above function.
|
|
static errno_t | Encode (UniquePtr< char[]> &dst, const void *src, size_t srcsize, CharOption char_option=kBase64Default, bool padding=false) noexcept |
| Encodes data in batch. More...
|
|
static std::pair< errno_t, std::unique_ptr< char[]> > | Encode (const void *src, size_t srcsize, CharOption char_option=kBase64Default, bool padding=false) noexcept |
| Encodes the data at a time and returns them after allocating memory inside.
|
|
Encodes Base64. This class supports various variants of Base64.
- Description
- This class supports batch encoding and split encoding of Base64. Various variants of Base64 can be supported by specifying CharOption type values. You can also specify whether or not to output with characters padded. However, no newline character will be output.
- The transition of the object state.
- The overview of the object state transitions is described below:
- See also
- https://www.ietf.org/rfc/rfc2045.txt
Definition at line 27 of file Base64.h.