Lines Matching refs:buffer_reader
88 std::string GetStringFromMemoryReader(NONNULL MemoryReader* buffer_reader, in GetStringFromMemoryReader() argument
98 if (buffer_reader->size() < effective_len) { in GetStringFromMemoryReader()
100 effective_len = buffer_reader->size(); in GetStringFromMemoryReader()
103 auto out = MakeSanitizedString(buffer_reader->GetBytesOrDie(effective_len), in GetStringFromMemoryReader()
213 while (auto buffer_reader = in Dump() local
215 const auto& tstamp_header = buffer_reader.CopyOutOrDie<TimestampHeader>(); in Dump()
217 buffer_reader.CopyOutOrDie<protocol::Command>(); in Dump()
228 output_string += ' ' + FormatAsciiMessage(buffer_reader); in Dump()
255 std::string CommandProcessor::FormatAsciiMessage(MemoryReader buffer_reader) { in FormatAsciiMessage() argument
257 if (buffer_reader.size() < sizeof(protocol::AsciiMessage)) { in FormatAsciiMessage()
263 buffer_reader.CopyOutOrDie<protocol::AsciiMessage>(); in FormatAsciiMessage()
265 GetStringFromMemoryReader(&buffer_reader, ascii_message_header.tag_len); in FormatAsciiMessage()
267 GetStringFromMemoryReader(&buffer_reader, ascii_message_header.data_len); in FormatAsciiMessage()