Lines Matching refs:cur
32 uint8_t *cur = buf->cur; in unpack_uint8() local
35 NET_DBG(">> cur:%p, end:%p", (void *)cur, (void *)end); in unpack_uint8()
37 if ((end - cur) < sizeof(uint8_t)) { in unpack_uint8()
41 *val = cur[0]; in unpack_uint8()
42 buf->cur = (cur + sizeof(uint8_t)); in unpack_uint8()
62 uint8_t *cur = buf->cur; in unpack_uint16() local
65 NET_DBG(">> cur:%p, end:%p", (void *)cur, (void *)end); in unpack_uint16()
67 if ((end - cur) < sizeof(uint16_t)) { in unpack_uint16()
71 *val = sys_get_be16(cur); in unpack_uint16()
72 buf->cur = (cur + sizeof(uint16_t)); in unpack_uint16()
95 NET_DBG(">> cur:%p, end:%p", (void *)buf->cur, (void *)buf->end); in unpack_utf8_str()
102 if ((buf->end - buf->cur) < utf8_strlen) { in unpack_utf8_str()
110 str->utf8 = buf->cur; in unpack_utf8_str()
111 buf->cur += utf8_strlen; in unpack_utf8_str()
136 NET_DBG(">> cur:%p, end:%p", (void *)buf->cur, (void *)buf->end); in unpack_data()
138 if ((buf->end - buf->cur) < length) { in unpack_data()
146 str->data = buf->cur; in unpack_data()
147 buf->cur += length; in unpack_data()
179 if (buf->cur >= buf->end) { in packet_length_decode()
183 *length += ((uint32_t)*(buf->cur) & MQTT_LENGTH_VALUE_MASK) in packet_length_decode()
187 } while ((*(buf->cur++) & MQTT_LENGTH_CONTINUATION_BIT) != 0U); in packet_length_decode()
309 return unpack_data(buf->end - buf->cur, buf, ¶m->return_codes); in subscribe_ack_decode()