Program Listing for File Hex.h

Return to documentation for file (components/Util/src/Hex.h)

#ifndef UTIL_HEX_H
#define UTIL_HEX_L

#include <cstdint>

#include "esp_err.h"

namespace util {

esp_err_t hexToInt(const char c, int& r);

esp_err_t hexToBytes(const char* src, std::uint8_t* target);

esp_err_t bytesToHex(std::uint8_t* buf, char* dst, std::size_t len);

} // namespace util


#endif // UTIL_HEX_L