Searched refs:n_bytes_avail_ (Results 1 – 2 of 2) sorted by relevance
36 : head_(static_cast<const uint8_t*>(buf)), n_bytes_avail_(buflen) {} in MemoryReader()39 : head_(std::get<0>(buf)), n_bytes_avail_(std::get<1>(buf)) {} in MemoryReader()47 const T out{local_utils::CopyFromBufferOrDie<T>(head_, n_bytes_avail_)}; in CopyOutOrDie()49 n_bytes_avail_ -= sizeof(T); in CopyOutOrDie()60 explicit operator bool() const { return head_ && n_bytes_avail_; }63 size_t size() const { return (head_ ? n_bytes_avail_ : 0); } in size()67 size_t n_bytes_avail_; variable
24 CHECK(n_bytes <= n_bytes_avail_); in GetBytesOrDie()28 n_bytes_avail_ -= n_bytes; in GetBytesOrDie()