Lines Matching full:data_len
27 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len) {
28 if (__pval(buf) + data_len < __pval(buf)) // Pointer wrap check
31 if (buf + data_len <= end) {
32 memcpy(buf, data, data_len);
33 return buf + data_len;
97 bool Buffer::Reinitialize(const void* data, size_t data_len) {
99 if (__pval(data) + data_len < __pval(data)) // Pointer wrap check
101 buffer_.reset(new (std::nothrow) uint8_t[data_len]);
104 buffer_size_ = data_len;
105 memcpy(buffer_.get(), data, data_len);