BSB Developer Docs
Loading...
Searching...
No Matches
hex.h
1#pragma once
2#include <stdint.h>
3#include <stdbool.h>
4#include <core/string.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
16bool hex_char_to_hex_nibble(char c, uint8_t* nibble);
17
25bool hex_char_to_uint8(char hi, char low, uint8_t* value);
26
33bool hex_chars_to_uint8(const char* value_str, uint8_t* value);
34
41bool hex_chars_to_uint64(const char* value_str, uint64_t* value);
42
49void uint8_to_hex_chars(const uint8_t* src, uint8_t* target, int length);
50
56void hex_bytes_to_string(const uint8_t* bytes, size_t bytes_length, FuriString* string);
57
66bool hex_string_to_bytes(
67 const FuriString* string,
68 uint8_t* bytes,
69 size_t bytes_count,
70 size_t* bytes_written);
71
72#ifdef __cplusplus
73}
74#endif