REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Codec for Base64. More...
#include <etl_base64.h>
Static Public Member Functions | |
template<typename T > | |
static ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value &&(etl::integral_limits< T >::bits==8U), size_t >::type | encode (const T *input, size_t input_length, char *output, size_t output_length) |
Encode to Base64 from and to pointer/length. | |
template<typename T > | |
static ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value &&(etl::integral_limits< T >::bits==8U), size_t >::type | encode (const T *input_begin, const T *input_end, char *output_begin, char *output_end) |
Encode to Base64 from and to pointer/pointer. | |
template<typename T , size_t Length1, size_t Length2> | |
static ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value &&(etl::integral_limits< T >::bits==8U), size_t >::type | encode (const etl::span< const T, Length1 > &input_span, const etl::span< char, Length2 > &output_span) |
Encode to Base64 from and to span/span. | |
template<typename T > | |
static ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value &&(etl::integral_limits< T >::bits==8U), size_t >::type | encode (const T *input_begin, size_t input_length, etl::istring &output) |
Encode to Base64 from pointer/length to etl::istring. | |
template<typename T > | |
static ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value &&(etl::integral_limits< T >::bits==8U), size_t >::type | encode (const T *input_begin, const T *input_end, etl::istring &output) |
Encode to Base64 from pointer/pointer to etl::istring. | |
template<typename T , size_t Length1> | |
static ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value &&(etl::integral_limits< T >::bits==8U), size_t >::type | encode (const etl::span< const T, Length1 > &input_span, etl::istring &output) |
Encode to Base64 from span to etl::istring. | |
ETL_NODISCARD static ETL_CONSTEXPR14 size_t | encode_size (size_t input_length) |
Calculates the buffer size required to encode to Base64. | |
template<typename T > | |
static ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value &&(etl::integral_limits< T >::bits==8U), size_t >::type | decode (const char *input, size_t input_length, T *output, size_t output_length) |
Decode from Base64 from and to pointer/length. | |
template<typename T > | |
static ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value &&(etl::integral_limits< T >::bits==8U), size_t >::type | decode (const char *input_begin, const char *input_end, T *output_begin, T *output_end) |
Decode from Base64 from and to pointer/pointer. | |
template<typename T , size_t Length1, size_t Length2> | |
static ETL_CONSTEXPR14 etl::enable_if< etl::is_integral< T >::value &&(etl::integral_limits< T >::bits==8U), size_t >::type | decode (const etl::span< const char, Length1 > &input_span, const etl::span< T, Length2 > &output_span) |
Decode from Base64 from and to span/span. | |
ETL_NODISCARD static ETL_CONSTEXPR14 size_t | decode_size (const char *input, size_t input_length) |
Calculates the buffer size required to decode from Base64. | |
Detailed Description
Codec for Base64.
Definition at line 82 of file etl_base64.h.
Member Function Documentation
◆ decode() [1/3]
|
inlinestatic |
Decode from Base64 from and to pointer/length.
Definition at line 293 of file etl_base64.h.
References decode_size(), and index().
Referenced by decode(), decode(), loader::SinglePluginLoader::load_and_execute(), and loader::FirmwareFlasher::stream().
◆ decode() [2/3]
|
inlinestatic |
Decode from Base64 from and to pointer/pointer.
Definition at line 384 of file etl_base64.h.
References decode().
◆ decode() [3/3]
|
inlinestatic |
Decode from Base64 from and to span/span.
Definition at line 397 of file etl_base64.h.
References decode().
◆ decode_size()
|
inlinestatic |
Calculates the buffer size required to decode from Base64.
Definition at line 409 of file etl_base64.h.
Referenced by decode().
◆ encode() [1/6]
|
inlinestatic |
Encode to Base64 from and to span/span.
Definition at line 210 of file etl_base64.h.
References encode().
◆ encode() [2/6]
|
inlinestatic |
Encode to Base64 from span to etl::istring.
Definition at line 256 of file etl_base64.h.
References encode(), and encode_size().
◆ encode() [3/6]
|
inlinestatic |
Encode to Base64 from and to pointer/length.
Definition at line 93 of file etl_base64.h.
References encode_size(), and index().
Referenced by encode(), encode(), encode(), encode(), encode(), and web::websocketsHandshakeEncodeKey().
◆ encode() [4/6]
|
inlinestatic |
Encode to Base64 from and to pointer/pointer.
Definition at line 197 of file etl_base64.h.
References encode().
◆ encode() [5/6]
|
inlinestatic |
Encode to Base64 from pointer/pointer to etl::istring.
Definition at line 240 of file etl_base64.h.
References encode(), and encode_size().
◆ encode() [6/6]
|
inlinestatic |
Encode to Base64 from pointer/length to etl::istring.
Definition at line 224 of file etl_base64.h.
References encode(), and encode_size().
◆ encode_size()
|
inlinestatic |
The documentation for this class was generated from the following file:
- lib/controller/src/utils/etl_base64.h