42#ifndef QSC_ARRAYUTILS_H
43#define QSC_ARRAYUTILS_H
48QSC_CPLUSPLUS_ENABLED_START
96#define QSC_ARRAYTILS_NPOS -1LL
233QSC_CPLUSPLUS_ENABLED_END
QSC_EXPORT_API uint8_t qsc_arrayutils_string_to_uint8(const char *str, size_t slen)
Parse an 8-bit unsigned integer from a string.
Definition arrayutils.c:90
QSC_EXPORT_API void qsc_arrayutils_uint8_to_hex(char *output, size_t otplen, uint8_t value)
Convert an 8-bit unsigned integer to a hexadecimal string.
Definition arrayutils.c:46
QSC_EXPORT_API void qsc_arrayutils_uint32_to_hex(char *output, size_t otplen, uint32_t value)
Convert a 32-bit unsigned integer to a hexadecimal string.
Definition arrayutils.c:68
QSC_EXPORT_API void qsc_arrayutils_uint64_to_hex(char *output, size_t otplen, uint64_t value)
Convert a 64-bit unsigned integer to a hexadecimal string.
Definition arrayutils.c:79
QSC_EXPORT_API uint64_t qsc_arrayutils_string_to_uint64(const char *str, size_t slen)
Parse a 64-bit unsigned integer from a string.
Definition arrayutils.c:141
QSC_EXPORT_API uint8_t qsc_arrayutils_hex_to_uint8(const char *str, size_t slen)
Convert a hexadecimal encoded string to an 8-bit unsigned integer.
Definition arrayutils.c:25
QSC_EXPORT_API uint32_t qsc_arrayutils_string_to_uint32(const char *str, size_t slen)
Parse a 32-bit unsigned integer from a string.
Definition arrayutils.c:124
QSC_EXPORT_API bool qsc_arrayutils_self_test(void)
Perform a self-test of the array utilities.
Definition arrayutils.c:158
QSC_EXPORT_API uint16_t qsc_arrayutils_string_to_uint16(const char *str, size_t slen)
Parse a 16-bit unsigned integer from a string.
Definition arrayutils.c:107
QSC_EXPORT_API void qsc_arrayutils_uint16_to_hex(char *output, size_t otplen, uint16_t value)
Convert a 16-bit unsigned integer to a hexadecimal string.
Definition arrayutils.c:57
QSC_EXPORT_API size_t qsc_arrayutils_find_string(const char *str, size_t slen, const char *token)
Find the first instance of a token in a string.
Definition arrayutils.c:5
Contains common definitions for the Quantum Secure Cryptographic (QSC) library.
#define QSC_EXPORT_API
API export macro for Microsoft compilers when importing from a DLL.
Definition common.h:520