Home
last modified time | relevance | path

Searched refs:used_size (Results 1 – 25 of 26) sorted by relevance

12

/third_party/libcoap/tests/
Dtest_pdu.c33 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 …]
Dtest_error_response.c46 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()
Dtest_uri.c338 .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()
Dtest_options.c476 .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()
Dtest_wellknown.c179 == 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/
Dpdu.c50 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 …]
Dnet.c772 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 …]
Dcoap_io_lwip.c161 …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()
Dblock.c80 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()
Doption.c124 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()
Dcoap_cache.c165 memcpy(entry->pdu->token, pdu->token, pdu->used_size); in coap_new_cache_entry()
Dcoap_session.c381 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/
Dbinn.c204 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 …]
Dbinn.h225 int used_size; member
/third_party/ejdb/src/jbl/tests/
Djbl_test_binn1.c36 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/
Dcoap_pdu_internal.h107 size_t used_size; /**< used bytes of storage for token, options and member
/third_party/pcre2/pcre2/src/sljit/
DsljitLir.c407 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()
DsljitLir.h346 sljit_uw used_size; member
DsljitNativeS390X.c1398 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()
DsljitNativeSPARC_common.c330 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativeARM_64.c262 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativePPC_common.c423 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativeARM_32.c718 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativeMIPS_common.c539 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()
DsljitNativeARM_T2_32.c396 buf_end = buf_ptr + (buf->used_size >> 1); in sljit_generate_code()

12