Lines Matching refs:end
22 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len) { in append_to_buf() argument
23 if (buf + data_len <= end) in append_to_buf()
28 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { in copy_from_buf() argument
29 if (end < *buf_ptr + size) in copy_from_buf()
36 bool copy_size_and_data_from_buf(const uint8_t** buf_ptr, const uint8_t* end, size_t* size, in copy_size_and_data_from_buf() argument
38 if (!copy_uint32_from_buf(buf_ptr, end, size) || *buf_ptr + *size > end) { in copy_size_and_data_from_buf()
48 return copy_from_buf(buf_ptr, end, dest->get(), *size); in copy_size_and_data_from_buf()
118 uint8_t* Buffer::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
119 return append_size_and_data_to_buf(buf, end, peek_read(), available_read()); in Serialize()
122 bool Buffer::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
124 if (!copy_size_and_data_from_buf(buf_ptr, end, &buffer_size_, &buffer_)) { in Deserialize()