Lines Matching refs:buf_ptr
38 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) {
39 if (__pval(*buf_ptr) + size < __pval(*buf_ptr)) // Pointer wrap check
42 if (end < *buf_ptr + size)
44 memcpy(dest, *buf_ptr, size);
45 *buf_ptr += size;
49 bool copy_size_and_data_from_buf(const uint8_t** buf_ptr, const uint8_t* end, size_t* size,
51 if (!copy_uint32_from_buf(buf_ptr, end, size))
54 if (__pval(*buf_ptr) + *size < __pval(*buf_ptr)) // Pointer wrap check
57 if (*buf_ptr + *size > end)
67 return copy_from_buf(buf_ptr, end, dest->get(), *size);
146 bool Buffer::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) {
148 if (!copy_size_and_data_from_buf(buf_ptr, end, &buffer_size_, &buffer_)) {