Home
last modified time | relevance | path

Searched refs:used_size (Results 1 – 25 of 33) 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()
96 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu5()
131 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu7()
156 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu8()
198 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu11()
214 CU_ASSERT(pdu->used_size == sizeof(teststr) - 4); in t_parse_pdu12()
348 CU_ASSERT(pdu->used_size == 5); in t_encode_pdu1()
408 CU_ASSERT(pdu->used_size == 0); in t_encode_pdu4()
415 CU_ASSERT(pdu->used_size == 20); in t_encode_pdu4()
[all …]
Dtest_oscore.c471 CU_ASSERT(osc_pdu->hdr_size + osc_pdu->used_size == in t_oscore_c_4()
474 osc_pdu->hdr_size + osc_pdu->used_size); in t_oscore_c_4()
538 CU_ASSERT(osc_pdu->hdr_size + osc_pdu->used_size == sizeof(protected)); in t_oscore_c_5()
540 osc_pdu->hdr_size + osc_pdu->used_size); in t_oscore_c_5()
607 CU_ASSERT(osc_pdu->hdr_size + osc_pdu->used_size == sizeof(protected)); in t_oscore_c_6()
609 osc_pdu->hdr_size + osc_pdu->used_size); in t_oscore_c_6()
694 CU_ASSERT(osc_pdu->hdr_size + osc_pdu->used_size == in t_oscore_c_7()
697 osc_pdu->hdr_size + osc_pdu->used_size); in t_oscore_c_7()
710 CU_ASSERT(osc_pdu->hdr_size + osc_pdu->used_size == in t_oscore_c_7()
713 osc_pdu->hdr_size + osc_pdu->used_size); in t_oscore_c_7()
[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.c344 .used_size = sizeof(teststr) in t_parse_uri13()
445 .used_size = 0 in t_parse_uri18()
470 .used_size = sizeof(teststr) in t_parse_uri19()
490 .used_size = sizeof(teststr) in t_parse_uri20()
511 .used_size = sizeof(teststr) in t_parse_uri21()
534 .used_size = sizeof(teststr) in t_parse_uri22()
555 .used_size = sizeof(teststr) in t_parse_uri23()
Dtest_options.c477 .used_size = 0 in t_iterate_option1()
503 .used_size = sizeof(teststr) in t_iterate_option2()
530 .used_size = sizeof(teststr) in t_iterate_option3()
573 .used_size = sizeof(teststr) in t_iterate_option4()
615 .used_size = sizeof(teststr) in t_iterate_option5()
648 .used_size = sizeof(teststr) in t_iterate_option6()
693 .used_size = sizeof(teststr) in t_iterate_option7()
740 .used_size = sizeof(teststr) in t_iterate_option8()
771 .used_size = sizeof(teststr) in t_iterate_option9()
802 .used_size = sizeof(teststr) in t_iterate_option10()
/third_party/libcoap/src/
Dcoap_pdu.c57 pdu->used_size = 0; in coap_pdu_clear()
208 size_t length = old_pdu->used_size - old_pdu->e_token_length - in coap_pdu_duplicate()
210 old_pdu->used_size - (old_pdu->data - old_pdu->token) +1 : 0); in coap_pdu_duplicate()
216 pdu->used_size += length; in coap_pdu_duplicate()
311 if (pdu->used_size) { in coap_add_token()
353 pdu->used_size = len + bias; in coap_add_token()
368 if (pdu->used_size == 0) { in coap_update_token()
385 pdu->used_size + (len + bias) - pdu->e_token_length)) { in coap_update_token()
390 pdu->token, pdu->used_size); in coap_update_token()
391 pdu->used_size += len + bias - pdu->e_token_length; in coap_update_token()
[all …]
Dcoap_net.c750 size_t used_size = pdu->used_size; in coap_option_check_critical() local
761 if (used_size != pdu->used_size) { in coap_option_check_critical()
798 pdu->used_size + pdu->hdr_size); in coap_session_send_pdu()
1457 if (pdu->used_size + 1 > pdu->max_size) { in coap_send_internal()
1461 if (!coap_pdu_resize(pdu, pdu->used_size + 1)) { in coap_send_internal()
1465 data_len = pdu->used_size - (pdu->data - pdu->token); in coap_send_internal()
1477 if (pdu->used_size + len + 1 <= pdu->max_size) { in coap_send_internal()
1478 size_t old_size = pdu->used_size; in coap_send_internal()
1479 if (coap_pdu_resize(pdu, pdu->used_size + len + 1)) { in coap_send_internal()
1496 pdu->used_size += len + 1; in coap_send_internal()
[all …]
Dcoap_oscore.c319 pdu->used_size + coap_oscore_overhead(session, pdu)); in coap_oscore_new_pdu_encrypted()
497 pdu->used_size); in coap_oscore_new_pdu_encrypted()
587 cose_encrypt0_set_plaintext(cose, plain_pdu->token, plain_pdu->used_size); in coap_oscore_new_pdu_encrypted()
595 plain_pdu->used_size + AES_CCM_TAG); in coap_oscore_new_pdu_encrypted()
830 coap_pdu_init(pdu->type, 0, pdu->mid, pdu->used_size); in coap_oscore_decrypt_pdu()
1275 encrypt_len = pdu->used_size - (pdu->data - pdu->token); in coap_oscore_decrypt_pdu()
1311 plain_pdu->used_size = encrypt_len - tag_len; in coap_oscore_decrypt_pdu()
1531 plain_pdu->used_size - in coap_oscore_decrypt_pdu()
Dcoap_option.c126 if (pdu->token + pdu->used_size <= oi->next_option) { in coap_option_iterator_init()
131 oi->length = pdu->used_size - pdu->e_token_length; in coap_option_iterator_init()
Dcoap_block.c131 size_t token_options = pdu->data ? (size_t)(pdu->data - pdu->token) : pdu->used_size; in setup_block_b()
257 size_t token_options = pdu->data ? (size_t)(pdu->data - pdu->token) : pdu->used_size; in coap_add_block_b_data()
723 token_options = pdu->data ? (size_t)(pdu->data - pdu->token) : pdu->used_size; in coap_add_data_large_internal()
905 lg_xmit->pdu.used_size + lg_xmit->pdu.max_hdr_size); in coap_add_data_large_internal()
909 lg_xmit->pdu.alloc_size = lg_xmit->pdu.used_size; in coap_add_data_large_internal()
911 memcpy(lg_xmit->pdu.token, pdu->token, lg_xmit->pdu.used_size); in coap_add_data_large_internal()
919 token_options = pdu->data ? (size_t)(pdu->data - pdu->token) : pdu->used_size; in coap_add_data_large_internal()
1393 pdu->token[pdu->used_size++] = COAP_PAYLOAD_START; in pdu_408_build()
1394 pdu->data = pdu->token + pdu->used_size; in pdu_408_build()
1426 if (coap_pdu_check_resize(pdu, pdu->used_size + len)) { in add_408_block()
[all …]
Dcoap_io_lwip.c299 pbuf_realloc(pdu->pbuf, pdu->used_size + coap_pdu_parse_header_size(session->proto, in coap_socket_send_pdu()
313 return pdu->used_size; in coap_socket_send_pdu()
Dcoap_cache.c174 memcpy(entry->pdu->token, pdu->token, pdu->used_size); in coap_new_cache_entry()
Dcoap_resource.c540 raw_packet.length = context->unknown_pdu->used_size +
897 raw_packet.length = s->pdu->used_size + request->hdr_size;
Dcoap_session.c853 if (bytes_written != (ssize_t)pdu->used_size + pdu->hdr_size) { in coap_session_send_csm()
937 if (bytes_written <= 0 || (size_t)bytes_written < q->pdu->used_size + q->pdu->hdr_size) { in coap_session_connected()
Dcoap_subscribe.c121 pdu->max_size = pdu->used_size; in coap_persist_observe_add()
/third_party/node/deps/v8/src/heap/
Dembedder-tracing.h121 remote_stats_.used_size.fetch_add(bytes, std::memory_order_relaxed); in IncreaseAllocatedSize()
132 DCHECK_GE(remote_stats_.used_size.load(std::memory_order_relaxed), bytes); in DecreaseAllocatedSize()
133 remote_stats_.used_size.fetch_sub(bytes, std::memory_order_relaxed); in DecreaseAllocatedSize()
138 size_t used_size() const { in used_size() function
139 return remote_stats_.used_size.load(std::memory_order_relaxed); in used_size()
209 std::atomic<size_t> used_size{0};
Dconcurrent-marking.cc255 int used_size = map.UsedInstanceSize(); in VisitJSObjectSubclass() local
256 DCHECK_LE(used_size, size); in VisitJSObjectSubclass()
257 DCHECK_GE(used_size, JSObject::GetHeaderSize(map)); in VisitJSObjectSubclass()
261 TBodyDescriptor::IterateBody(map, object, used_size, this); in VisitJSObjectSubclass()
Dlarge-spaces.cc74 size_t used_size = ::RoundUp((object_address - address()) + object_size, in GetAddressToShrink() local
76 if (used_size < CommittedPhysicalMemory()) { in GetAddressToShrink()
77 return address() + used_size; in GetAddressToShrink()
Dembedder-tracing.cc82 remote_stats_.used_size = allocated_size; in UpdateRemoteStats()
/third_party/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_lower_vulkan_resource.c181 size_t used_size) // used[] size, in bits in lower_vri_instr_tex_deref() argument
228 assert(value < used_size); in lower_vri_instr_tex_deref()
233 assert(value + size <= used_size); in lower_vri_instr_tex_deref()
237 assert(value < used_size); in lower_vri_instr_tex_deref()
/third_party/libcoap/include/coap3/
Dcoap_pdu_internal.h135 size_t used_size; /**< used bytes of storage for token, options and member
/third_party/pcre2/pcre2/src/sljit/
DsljitLir.c413 compiler->buf->used_size = 0; in sljit_create_compiler()
415 compiler->abuf->used_size = 0; in sljit_create_compiler()
574 …if (compiler->buf->used_size + size <= (BUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_fr… in ensure_buf()
575 ret = compiler->buf->memory + compiler->buf->used_size; in ensure_buf()
576 compiler->buf->used_size += size; in ensure_buf()
583 new_frag->used_size = size; in ensure_buf()
593 …if (compiler->abuf->used_size + size <= (ABUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_… in ensure_abuf()
594 ret = compiler->abuf->memory + compiler->abuf->used_size; in ensure_abuf()
595 compiler->abuf->used_size += size; in ensure_abuf()
602 new_frag->used_size = size; in ensure_abuf()
DsljitLir.h378 sljit_uw used_size; member
DsljitNativeS390X.c1455 sljit_uw len = buf->used_size / sizeof(sljit_ins); in sljit_generate_code()
1540 sljit_uw len = buf->used_size / sizeof(sljit_ins); in sljit_generate_code()
DsljitNativeARM_64.c269 buf_end = buf_ptr + (buf->used_size >> 2); in sljit_generate_code()

12