![]() Size_t ::encode( char* encoded_result, size_t encoded_buffer_size, const * binary, size_t binary_size) noexcept It's possible to support types lacking these functions, consult the code directly if you need this. size() for T (read-only) template parameters, Std::vector decoded = base64::decode( "YW55IGNhcm5hbCBwbGVhc3VyZQ= ") ĭefault alias such as base64, base32 or hex, or with the full namespace such asĬppcodec::base64_rfc4648 or cppcodec::base32_crockford.įor templated parameters T and Result, you can use e.g. Using base32 = cppcodec::base32_crockford Here is an expected standard use of cppcodec: ![]() cppcodec::base64_rfc4648), with classes and their associated header files named verbatim after the codec variants. ![]() To let you make a conscious choice about which one you're using, see below for a list of variants.Ĭppcodec's approach is to implement encoding/decoding algorithms in different classes for namespacing (e.g. Or specifying the use of padding and line breaks in different ways. VariantsĪ number of codec variants exist for base64 and base32, defining different alphabets Since cppcodec is a header-only library, no extra build step is needed.Īlternatively, you can install the headers and build extra tools/tests with CMake.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |