28 if (length >
sizeof(uint64_t)) {
32 for (
size_t i = 0; i < length; i++) {
47 if (config_len == 0 || config == NULL) {
50 ticker_len = config[offset++];
51 if (ticker_len == 0 || ticker_len >= ticker_buf_len - 1 || config_len - offset < ticker_len) {
54 memcpy(ticker, config + offset, ticker_len);
56 ticker[ticker_len] =
'\0';
58 if (config_len - offset < 1) {
61 *decimals = config[offset];
volatile bool G_called_from_swap
bool swap_parse_config(const uint8_t *config, uint8_t config_len, char *ticker, uint8_t ticker_buf_len, uint8_t *decimals)
volatile bool G_swap_response_ready
bool swap_str_to_u64(const uint8_t *src, size_t length, uint64_t *result)