Lines Matching full:end
49 uint8_t *end = buf->end; in pack_uint8() local
51 if ((end - cur) < sizeof(uint8_t)) { in pack_uint8()
55 NET_DBG(">> val:%02x cur:%p, end:%p", val, (void *)cur, (void *)end); in pack_uint8()
77 uint8_t *end = buf->end; in pack_uint16() local
79 if ((end - cur) < sizeof(uint16_t)) { in pack_uint16()
83 NET_DBG(">> val:%04x cur:%p, end:%p", val, (void *)cur, (void *)end); in pack_uint16()
104 if ((buf->end - buf->cur) < GET_UT8STR_BUFFER_SIZE(str)) { in pack_utf8_str()
108 NET_DBG(">> str_size:%08x cur:%p, end:%p", in pack_utf8_str()
109 (uint32_t)GET_UT8STR_BUFFER_SIZE(str), (void *)buf->cur, (void *)buf->end); in pack_utf8_str()
149 NET_DBG(">> length:0x%08x cur:%p, end:%p", length, in packet_length_encode()
150 (buf == NULL) ? 0 : (void *)buf->cur, (buf == NULL) ? 0 : (void *)buf->end); in packet_length_encode()
187 * As output, the pointers will point to beginning and the end
217 * and end pointer to the end of the frame. in mqtt_encode_fixed_header()
220 buf->end = buf->cur + length + fixed_header_length; in mqtt_encode_fixed_header()
437 buf->end -= param->message.payload.len; in publish_encode()
481 uint8_t *end = buf->end; in disconnect_encode() local
483 if ((end - cur) < sizeof(disc_packet)) { in disconnect_encode()
488 buf->end = (cur + sizeof(disc_packet)); in disconnect_encode()
560 uint8_t *end = buf->end; in ping_request_encode() local
562 if ((end - cur) < sizeof(ping_packet)) { in ping_request_encode()
567 buf->end = (cur + sizeof(ping_packet)); in ping_request_encode()