Lines Matching refs:size_t
42 coap_pdu_clear(coap_pdu_t *pdu, size_t size) {
98 size_t size) {
181 size_t token_length,
208 size_t length = old_pdu->used_size - old_pdu->e_token_length -
245 coap_pdu_resize(coap_pdu_t *pdu, size_t new_size) {
249 size_t offset;
287 coap_pdu_check_resize(coap_pdu_t *pdu, size_t size) {
289 size_t new_size = max(256, pdu->alloc_size * 2);
304 coap_add_token(coap_pdu_t *pdu, size_t len, const uint8_t *data) {
305 size_t bias = 0;
361 coap_update_token(coap_pdu_t *pdu, size_t len, const uint8_t *data) {
362 size_t bias = 0;
433 size_t opt_delta;
565 size_t
566 coap_insert_option(coap_pdu_t *pdu, coap_option_num_t number, size_t len,
571 size_t shift;
572 size_t opt_delta;
574 size_t shrink = 0;
659 size_t
660 coap_update_option(coap_pdu_t *pdu, coap_option_num_t number, size_t len,
665 size_t new_length = 0;
666 size_t old_length = 0;
672 old_length = coap_opt_parse(option, (size_t)-1, &decode);
705 size_t
706 coap_add_option(coap_pdu_t *pdu, coap_option_num_t number, size_t len,
715 size_t
716 coap_add_option_internal(coap_pdu_t *pdu, coap_option_num_t number, size_t len,
718 size_t optsize;
738 size_t hop_limit = COAP_OPTION_HOP_LIMIT;
781 coap_add_data(coap_pdu_t *pdu, size_t len, const uint8_t *data) {
793 coap_add_data_after(coap_pdu_t *pdu, size_t len) {
812 coap_get_data(const coap_pdu_t *pdu, size_t *len, const uint8_t **data) {
813 size_t offset;
814 size_t total;
820 coap_get_data_large(const coap_pdu_t *pdu, size_t *len, const uint8_t **data,
821 size_t *offset, size_t *total) {
902 static size_t
903 next_option_safe(coap_opt_t **optp, size_t *length, uint16_t *max_opt) {
905 size_t optsize;
928 size_t
932 size_t header_size = 0;
958 size_t
961 size_t length) {
967 size_t size = 0;
979 size = (size_t)data[1] + COAP_MESSAGE_SIZE_OFFSET_TCP8;
983 size = ((size_t)data[1] << 8) + data[2] + COAP_MESSAGE_SIZE_OFFSET_TCP16;
986 size = ((size_t)data[1] << 24) + ((size_t)data[2] << 16)
987 + ((size_t)data[3] << 8) + data[4] + COAP_MESSAGE_SIZE_OFFSET_TCP32;
1240 write_prefix(char **obp, size_t *len, const char *prf, size_t prflen) {
1253 write_char(char **obp, size_t *len, char c, int printable) {
1297 size_t length = pdu->used_size - pdu->e_token_length;
1303 size_t optsize = next_option_safe(&opt, &length, &pdu->max_opt);
1332 size_t tlen;
1333 size_t outbuflen;
1347 size_t optsize = next_option_safe(&opt, &length, &pdu->max_opt);
1399 size_t length,
1401 size_t hdr_size;
1419 size_t
1450 size_t len;