Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 3 of 3) sorted by relevance

/openthread-latest/third_party/tcplp/lib/
Dcbuf.h57 …o_buffer(void* buffer, size_t buffer_offset, const void* arr, size_t arr_offset, size_t num_bytes);
58 …m_buffer(void* arr, size_t arr_offset, const void* buffer, size_t buffer_offset, size_t num_bytes);
61 …_message(void* buffer, size_t buffer_offset, const void* arr, size_t arr_offset, size_t num_bytes);
62 …_message(void* arr, size_t arr_offset, const void* buffer, size_t buffer_offset, size_t num_bytes);
Dcbuf.c46 …_buffer(void* buffer, size_t buffer_offset, const void* arr, size_t arr_offset, size_t num_bytes) { in cbuf_copy_into_buffer() argument
49 memcpy(bufptr + buffer_offset, arrptr + arr_offset, num_bytes); in cbuf_copy_into_buffer()
52 …_buffer(void* arr, size_t arr_offset, const void* buffer, size_t buffer_offset, size_t num_bytes) { in cbuf_copy_from_buffer() argument
55 memcpy(arrptr + arr_offset, bufptr + buffer_offset, num_bytes); in cbuf_copy_from_buffer()
58 …message(void* buffer, size_t buffer_offset, const void* arr, size_t arr_offset, size_t num_bytes) { in cbuf_copy_into_message() argument
61 otMessageWrite(message, (uint16_t) buffer_offset, arrptr + arr_offset, (uint16_t) num_bytes); in cbuf_copy_into_message()
64 …message(void* arr, size_t arr_offset, const void* buffer, size_t buffer_offset, size_t num_bytes) { in cbuf_copy_from_message() argument
67 otMessageRead(message, (uint16_t) buffer_offset, arrptr + arr_offset, (uint16_t) num_bytes); in cbuf_copy_from_message()
/openthread-latest/third_party/mbedtls/repo/library/
Doid.c1010 size_t num_bytes = 0; in oid_subidentifier_num_bytes() local
1014 num_bytes++; in oid_subidentifier_num_bytes()
1017 return num_bytes; in oid_subidentifier_num_bytes()
1024 size_t num_bytes = oid_subidentifier_num_bytes(value); in oid_subidentifier_encode_into() local
1026 if ((size_t) (bound - *p) < num_bytes) { in oid_subidentifier_encode_into()
1029 (*p)[num_bytes - 1] = (unsigned char) (value & 0x7f); in oid_subidentifier_encode_into()
1032 for (size_t i = 2; i <= num_bytes; i++) { in oid_subidentifier_encode_into()
1033 (*p)[num_bytes - i] = 0x80 | (unsigned char) (value & 0x7f); in oid_subidentifier_encode_into()
1036 *p += num_bytes; in oid_subidentifier_encode_into()