/third_party/libcoap/tests/ |
D | test_pdu.c | 33 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu1() 49 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu2() 94 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu5() 129 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu7() 154 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu8() 196 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu11() 212 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu12() 345 CU_ASSERT(pdu->used_size == 5); in t_encode_pdu1() 396 CU_ASSERT(pdu->used_size == 0); in t_encode_pdu4() 403 CU_ASSERT(pdu->used_size == 20); in t_encode_pdu4() [all …]
|
D | test_error_response.c | 46 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response1() 76 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response2() 109 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response3() 148 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response4() 189 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response5() 230 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response6() 272 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response7() 313 CU_ASSERT(response->used_size == sizeof(teststr) - 4); in t_error_response8()
|
D | test_uri.c | 338 .used_size = sizeof(teststr) in t_parse_uri13() 439 .used_size = 0 in t_parse_uri18() 464 .used_size = sizeof(teststr) in t_parse_uri19() 484 .used_size = sizeof(teststr) in t_parse_uri20() 505 .used_size = sizeof(teststr) in t_parse_uri21() 528 .used_size = sizeof(teststr) in t_parse_uri22() 549 .used_size = sizeof(teststr) in t_parse_uri23()
|
D | test_options.c | 476 .used_size = 0 in t_iterate_option1() 502 .used_size = sizeof(teststr) in t_iterate_option2() 529 .used_size = sizeof(teststr) in t_iterate_option3() 572 .used_size = sizeof(teststr) in t_iterate_option4() 614 .used_size = sizeof(teststr) in t_iterate_option5() 647 .used_size = sizeof(teststr) in t_iterate_option6() 692 .used_size = sizeof(teststr) in t_iterate_option7() 739 .used_size = sizeof(teststr) in t_iterate_option8() 770 .used_size = sizeof(teststr) in t_iterate_option9() 801 .used_size = sizeof(teststr) in t_iterate_option10()
|
D | test_wellknown.c | 179 == response->token + response->used_size - response->data); in t_wellknown4() 212 == response->token + response->used_size - response->data); in t_wellknown5()
|
/third_party/libcoap/src/ |
D | pdu.c | 50 pdu->used_size = 0; in coap_pdu_clear() 173 size_t length = old_pdu->used_size - old_pdu->token_length - in coap_pdu_duplicate() 175 old_pdu->used_size - (old_pdu->data - old_pdu->token) +1 : 0); in coap_pdu_duplicate() 181 pdu->used_size += length; in coap_pdu_duplicate() 263 if (pdu->used_size) { in coap_add_token() 274 pdu->used_size = len; in coap_add_token() 287 if (pdu->used_size == 0) { in coap_update_token() 294 if (!coap_pdu_check_resize(pdu, pdu->used_size + len - pdu->token_length)) in coap_update_token() 296 memmove(&pdu->token[len - pdu->token_length], pdu->token, pdu->used_size); in coap_update_token() 297 pdu->used_size += len - pdu->token_length; in coap_update_token() [all …]
|
D | net.c | 772 pdu->used_size + pdu->hdr_size); in coap_session_send_pdu() 776 pdu->used_size + pdu->hdr_size); in coap_session_send_pdu() 781 pdu->used_size + pdu->hdr_size); in coap_session_send_pdu() 787 pdu->used_size + pdu->hdr_size); in coap_session_send_pdu() 1220 if (pdu->used_size + 1 <= pdu->max_size) { in coap_send_internal() 1222 size_t data_len = pdu->used_size - (pdu->data - pdu->token); in coap_send_internal() 1235 if (pdu->used_size + len + 1 <= pdu->max_size) { in coap_send_internal() 1236 size_t old_size = pdu->used_size; in coap_send_internal() 1237 if (coap_pdu_resize(pdu, pdu->used_size + len + 1)) { in coap_send_internal() 1255 pdu->used_size += len + 1; in coap_send_internal() [all …]
|
D | coap_io_lwip.c | 161 …pbuf_realloc(pdu->pbuf, pdu->used_size + coap_pdu_parse_header_size(session->proto, pdu->pbuf->pay… in coap_socket_send_pdu() 164 return pdu->used_size; in coap_socket_send_pdu()
|
D | block.c | 80 avail = pdu->max_size - pdu->used_size - pdu->hdr_size; in coap_write_block_opt() 411 avail = pdu->max_size - pdu->used_size - pdu->hdr_size; in coap_add_data_large_internal() 556 8 + lg_xmit->pdu.used_size + lg_xmit->pdu.hdr_size); in coap_add_data_large_internal() 560 lg_xmit->pdu.alloc_size = 8 + lg_xmit->pdu.used_size + in coap_add_data_large_internal() 563 memcpy(lg_xmit->pdu.token, pdu->token, lg_xmit->pdu.used_size); in coap_add_data_large_internal() 568 avail = pdu->max_size - pdu->used_size - pdu->hdr_size; in coap_add_data_large_internal() 831 memcpy(lg_crcv->pdu.token, pdu->token, lg_crcv->pdu.used_size); in coap_block_new_lg_crcv() 835 if (lg_crcv->pdu.max_size < lg_crcv->pdu.used_size + 9) in coap_block_new_lg_crcv() 836 lg_crcv->pdu.max_size = lg_crcv->pdu.used_size + 9; in coap_block_new_lg_crcv()
|
D | option.c | 124 if (pdu->token + pdu->used_size <= oi->next_option) { in coap_option_iterator_init() 129 oi->length = pdu->used_size - pdu->token_length; in coap_option_iterator_init()
|
D | coap_cache.c | 165 memcpy(entry->pdu->token, pdu->token, pdu->used_size); in coap_new_cache_entry()
|
D | coap_session.c | 381 if (bytes_written != (ssize_t)pdu->used_size + pdu->hdr_size) in coap_session_send_csm() 451 if (bytes_written <= 0 || (size_t)bytes_written < q->pdu->used_size + q->pdu->hdr_size) { in coap_session_connected()
|
/third_party/ejdb/src/jbl/ |
D | binn.c | 204 item->used_size = MAX_BINN_HEADER; // save space for the header in binn_create() 308 if (item->used_size + add_size > item->alloc_size) { in CheckAllocation() 312 alloc_size = CalcAllocation(item->used_size + add_size, item->alloc_size); in CheckAllocation() 522 p = SearchForKey(item->pbuf, MAX_BINN_HEADER, item->used_size, item->count, key, keylen); in binn_object_set_raw() 531 p = ((unsigned char*) item->pbuf) + item->used_size; in binn_object_set_raw() 537 item->used_size += int32; in binn_object_set_raw() 540 item->used_size -= int32; in binn_object_set_raw() 555 p = SearchForID(item->pbuf, MAX_BINN_HEADER, item->used_size, item->count, id); in binn_map_set_raw() 563 p = ((unsigned char*) item->pbuf) + item->used_size; in binn_map_set_raw() 566 item->used_size += 4; in binn_map_set_raw() [all …]
|
D | binn.h | 225 int used_size; member
|
/third_party/ejdb/src/jbl/tests/ |
D | jbl_test_binn1.c | 36 if (item->used_size + add_size > item->alloc_size) { in CheckAllocation() 40 alloc_size = CalcAllocation(item->used_size + add_size, item->alloc_size); in CheckAllocation() 350 CU_ASSERT(obj1->used_size == MAX_BINN_HEADER); in test1() 373 CU_ASSERT(list->used_size == MAX_BINN_HEADER); in test1() 381 CU_ASSERT(map->used_size == MAX_BINN_HEADER); in test1() 389 CU_ASSERT(obj->used_size == MAX_BINN_HEADER); in test1() 406 CU_ASSERT(obj1->used_size == MAX_BINN_HEADER); in test1() 667 CU_ASSERT(list->used_size > MAX_BINN_HEADER); in _test2() 675 CU_ASSERT(map->used_size > MAX_BINN_HEADER); in _test2() 683 CU_ASSERT(obj->used_size > MAX_BINN_HEADER); in _test2() [all …]
|
/third_party/libcoap/include/coap3/ |
D | coap_pdu_internal.h | 107 size_t used_size; /**< used bytes of storage for token, options and member
|
/third_party/pcre2/pcre2/src/sljit/ |
D | sljitLir.c | 407 compiler->buf->used_size = 0; in sljit_create_compiler() 409 compiler->abuf->used_size = 0; in sljit_create_compiler() 565 …if (compiler->buf->used_size + size <= (BUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_fr… in ensure_buf() 566 ret = compiler->buf->memory + compiler->buf->used_size; in ensure_buf() 567 compiler->buf->used_size += size; in ensure_buf() 574 new_frag->used_size = size; in ensure_buf() 584 …if (compiler->abuf->used_size + size <= (ABUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_… in ensure_abuf() 585 ret = compiler->abuf->memory + compiler->abuf->used_size; in ensure_abuf() 586 compiler->abuf->used_size += size; in ensure_abuf() 593 new_frag->used_size = size; in ensure_abuf()
|
D | sljitLir.h | 346 sljit_uw used_size; member
|
D | sljitNativeS390X.c | 1398 sljit_uw len = buf->used_size / sizeof(sljit_ins); in sljit_generate_code() 1483 sljit_uw len = buf->used_size / sizeof(sljit_ins); in sljit_generate_code()
|
D | sljitNativeSPARC_common.c | 330 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativeARM_64.c | 262 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativePPC_common.c | 423 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativeARM_32.c | 718 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativeMIPS_common.c | 539 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
|
D | sljitNativeARM_T2_32.c | 396 buf_end = buf_ptr + (buf->used_size >> 1); in sljit_generate_code()
|