Lines Matching refs:end
30 bool buffer_bound_check(const uint8_t* buf, const uint8_t* end, size_t len) { in buffer_bound_check() argument
33 return (!overflow_occurred) && (buf_next <= __pval(end)); in buffer_bound_check()
38 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len) { in append_to_buf() argument
39 if (buffer_bound_check(buf, end, data_len)) { in append_to_buf()
47 bool copy_from_buf(const uint8_t** buf_ptr, const uint8_t* end, void* dest, size_t size) { in copy_from_buf() argument
48 if (buffer_bound_check(*buf_ptr, end, size)) { in copy_from_buf()
57 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
59 if (!copy_uint32_from_buf(buf_ptr, end, size)) in copy_size_and_data_from_buf()
67 if (buffer_bound_check(*buf_ptr, end, *size)) { in copy_size_and_data_from_buf()
72 return copy_from_buf(buf_ptr, end, dest->get(), *size); in copy_size_and_data_from_buf()
150 uint8_t* Buffer::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
151 return append_size_and_data_to_buf(buf, end, peek_read(), available_read()); in Serialize()
154 bool Buffer::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() argument
156 if (!copy_size_and_data_from_buf(buf_ptr, end, &buffer_size_, &buffer_)) { in Deserialize()