String and array transposition functions. More...
Go to the source code of this file.
Functions | |
QSC_EXPORT_API void | qsc_transpose_bytes_to_native (uint32_t *output, const uint8_t *input, size_t length) |
Convert 32-bit integers in big-endian format to 8-bit integers. | |
QSC_EXPORT_API void | qsc_transpose_hex_to_bin (uint8_t *output, const char *input, size_t length) |
Convert a hexadecimal string to a decimal 8-bit array. | |
QSC_EXPORT_API void | qsc_transpose_native_to_bytes (uint8_t *output, const uint32_t *input, size_t length) |
Convert 8-bit integers to 32-bit integers in big-endian format. | |
QSC_EXPORT_API void | qsc_transpose_string_to_scalar (uint32_t *output, const char *input, size_t length) |
Convert a 8-bit character array to zero padded 32-bit scalar integers. | |
String and array transposition functions.
This header provides functions to convert between different representations of integer arrays and strings. It includes functions for converting:
\keywords transpose, conversion, big-endian, hexadecimal, string, integer, utility
QSC_EXPORT_API void qsc_transpose_bytes_to_native | ( | uint32_t * | output, |
const uint8_t * | input, | ||
size_t | length ) |
Convert 32-bit integers in big-endian format to 8-bit integers.
output | [uint32_t*] Pointer to the output 8-bit integer array |
input | [const uint8_t*] Pointer to the input 8-bit character array |
length | [size_t] The number of 8-bit integers to convert |
QSC_EXPORT_API void qsc_transpose_hex_to_bin | ( | uint8_t * | output, |
const char * | input, | ||
size_t | length ) |
Convert a hexadecimal string to a decimal 8-bit array.
output | [uint8_t*] Pointer to the output 8-bit integer array |
input | [const char*] Pointer to the input 8-bit character array |
length | [size_t] The number of hex characters to convert |
QSC_EXPORT_API void qsc_transpose_native_to_bytes | ( | uint8_t * | output, |
const uint32_t * | input, | ||
size_t | length ) |
Convert 8-bit integers to 32-bit integers in big-endian format.
output | [uint8_t*] Pointer to the output 8-bit integer array |
input | [const uint32_t*] Pointer to the input 8-bit character array |
length | [size_t] The number of 8-bit integers to convert |
QSC_EXPORT_API void qsc_transpose_string_to_scalar | ( | uint32_t * | output, |
const char * | input, | ||
size_t | length ) |
Convert a 8-bit character array to zero padded 32-bit scalar integers.
output | [uint32_t*] Pointer to the output 32-bit integer array |
input | [const char*] Pointer to the input 8-bit character array |
length | [size_t] The number of 8-bit integers to convert |