Home
last modified time | relevance | path

Searched refs:bytes_in_buffer_ (Results 1 – 2 of 2) sorted by relevance

/external/pigweed/pw_kvs/
Dalignment.cc23 size_t to_copy = std::min(write_size_ - bytes_in_buffer_, data.size()); in Write()
25 std::memcpy(&buffer_[bytes_in_buffer_], data.data(), to_copy); in Write()
38 if (bytes_in_buffer_ != 0u) { in Flush()
39 const size_t remaining_bytes = AlignUp(bytes_in_buffer_, alignment_bytes_); in Flush()
40 std::memset(&buffer_[bytes_in_buffer_], in Flush()
42 remaining_bytes - bytes_in_buffer_); in Flush()
46 bytes_in_buffer_ = 0; in Flush()
56 const size_t to_read = std::min(write_size_ - bytes_in_buffer_, size); in Write()
57 StatusWithSize result = input.Read(buffer_ + bytes_in_buffer_, to_read); in Write()
69 bytes_in_buffer_ += bytes_added; in AddBytesToBuffer()
[all …]
/external/pigweed/pw_kvs/public/pw_kvs/
Dalignment.h58 bytes_in_buffer_(0) { in AlignedWriter()
98 size_t bytes_in_buffer_; variable