![]() ![]() ![]() 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. Include headers and start using the API.Add the cppcodec root directory to your build system's list of include directories.Import cppcodec into your project (copy, git submodule, etc.).Std::string and (templated) character vectors without unnecessary allocations.Ĭross-platform with measured decent performance and without compiler warnings. MIT licensed with consistent, flexible API. base16) as specified in RFC 4648, plus Crockford's base32. Header-only C++11 library to encode/decode base64, base64url, base32, base32hexĪnd hex (a.k.a. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |