Searched refs:write_head (Results 1 – 2 of 2) sorted by relevance
214 size_t write_head = in GetAvailableMmapData() local219 if (read_head == write_head) { in GetAvailableMmapData()224 if (read_head < write_head) { in GetAvailableMmapData()225 read_bytes = write_head - read_head; in GetAvailableMmapData()227 read_bytes = mmap_data_buffer_size_ - read_head + write_head; in GetAvailableMmapData()240 if (read_head < write_head) { in GetAvailableMmapData()242 size_t n = write_head - read_head; in GetAvailableMmapData()250 n = write_head; in GetAvailableMmapData()
69 uint32_t write_head = (read_head_ + valid_bytes_) % data_.size(); in StoreMessage() local70 if (message.len <= data_.size() - write_head) { in StoreMessage()71 memcpy(data_.data() + write_head, &message, message.len); in StoreMessage()73 uint32_t len1 = data_.size() - write_head; in StoreMessage()74 memcpy(data_.data() + write_head, &message, len1); in StoreMessage()