format_byte
format_byte(v, buf);
format_byte(value, buf + (len - i - 1) * 2);
format_byte(value, (uint8_t *)(buf + (len - i - 1) * 2));