Definition in file tskv_parser_read.hpp.
Go to the source code of this file.
#include <utility>
#include <userver/compiler/thread_local.hpp>
#include <userver/utils/encoding/tskv_parser.hpp>
Namespaces | |
namespace | utils |
Utilities. | |
Functions | |
template<typename TagConsumer > | |
TskvParser::RecordStatus | utils::encoding::TskvReadRecord (TskvParser &parser, TagConsumer consumer) |
Read all keys-values for 1 TSKV record. | |
TskvParser::RecordStatus utils::encoding::TskvReadRecord | ( | TskvParser & | parser, |
TagConsumer | consumer ) |
Read all keys-values for 1 TSKV record.
parser | parser that should have already found the start of the TSKV record using TskvParser::SkipToRecordBegin |
consumer | a lambda with the signature (const std::string&, const std::string&) -> bool ; the strings are temporaries, references to them should not be stored; can return false to skip the record and return immediately |
Usage example:
Definition at line 38 of file tskv_parser_read.hpp.