52#ifndef QSC_ARRAYUTILS_H
53#define QSC_ARRAYUTILS_H
58QSC_CPLUSPLUS_ENABLED_START
106#define QSC_ARRAYUTILS_NPOS -1LL
234#if defined(QSC_DEBUG_MODE)
245QSC_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:157
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:92
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:123
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:140
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:262
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:34
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:224
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:186
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:106
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:4
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 qsccommon.h:605