Go to the documentation of this file.
24 #include <azure/core/_az_cfg_prefix.h>
109 az_span source_base64_url_text,
110 int32_t* out_written);
122 #include <azure/core/_az_cfg_suffix.h>
124 #endif // _az_BASE64_H
Definition of az_result and helper functions.
int32_t az_result
The type represents the various success and error conditions.
Definition: az_result.h:46
AZ_NODISCARD int32_t az_base64_get_max_encoded_size(int32_t source_bytes_size)
Returns the maximum length of the result if you were to encode an az_span of the specified length whi...
AZ_NODISCARD int32_t az_base64_url_get_max_decoded_size(int32_t source_base64_url_text_size)
Returns the maximum length of the result if you were to decode an az_span of the specified length whi...
AZ_NODISCARD az_result az_base64_url_decode(az_span destination_bytes, az_span source_base64_url_text, int32_t *out_written)
Decodes the span of UTF-8 encoded text represented as base 64 url into binary data.
An az_span represents a contiguous byte buffer and is used for string manipulations,...
AZ_NODISCARD az_result az_base64_encode(az_span destination_base64_text, az_span source_bytes, int32_t *out_written)
Encodes the span of binary data into UTF-8 encoded text represented as base 64.
AZ_NODISCARD az_result az_base64_decode(az_span destination_bytes, az_span source_base64_text, int32_t *out_written)
Decodes the span of UTF-8 encoded text represented as base 64 into binary data.
Represents a "view" over a byte buffer that represents a contiguous region of memory....
Definition: az_span.h:33
AZ_NODISCARD int32_t az_base64_get_max_decoded_size(int32_t source_base64_text_size)
Returns the maximum length of the result if you were to decode an az_span of the specified length whi...