|
K-HHC
C++ Header-only Library for Hexahexacontadecimal Encoding/Decoding
|
#include <cstdint>#include <array>#include <stdexcept>#include "hhc_constants.hpp"#include "hhc_assert.hpp"#include <string>
Go to the source code of this file.
Namespaces | |
| namespace | hhc |
Functions | |
| constexpr void | hhc::hhc_32bit_encode_padded (uint32_t input, char *output_string) |
| Encode a 32-bit integer into a 6-character string. | |
| constexpr void | hhc::hhc_unpad_string (char *output_string) |
| Unpad a string by removing the leading '-' padding characters and moving the significant content to the beginning. | |
| constexpr void | hhc::hhc_32bit_encode_unpadded (uint32_t input, char *output_string) |
| Encode a 32-bit integer into a 6-character string without padding. | |
| constexpr uint32_t | hhc::hhc_32bit_decode_unsafe (const char *input_string) |
| Decode a 32-bit integer from a 6-character string. | |
| constexpr void | hhc::hhc_64bit_encode_padded (uint64_t input, char *output_string) |
| Encode a 64-bit integer into a 11-character string. | |
| constexpr void | hhc::hhc_64bit_encode_unpadded (uint64_t input, char *output_string) |
| Encode a 64-bit integer into a 11-character string without padding. | |
| constexpr uint64_t | hhc::hhc_64bit_decode_unsafe (const char *input_string) |
| Decode a 64-bit integer from a 11-character string. | |
| constexpr std::size_t | hhc::hhc_validate_string (const char *input_string) |
| Validate a string to ensure it is a valid HHC string. | |
| constexpr bool | hhc::hhc_bounds_check (const char *input_string, const char *max_string) |
| Check if a string is within the bounds of a maximum string. | |
| constexpr uint32_t | hhc::hhc_32bit_decode (const char *input_string) |
| Decode a 32-bit integer from a 6-character string. | |
| constexpr uint64_t | hhc::hhc_64bit_decode (const char *input_string) |
| Decode a 64-bit integer from a 11-character string. | |