MCPcopy Create free account
hub / github.com/comaps/comaps / WriteNonEmpty

Function WriteNonEmpty

libs/i18n/string_utf8_multilang.hpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15{
16template <class TSink>
17void WriteNonEmpty(TSink & sink, std::string const & s)
18{
19 CHECK(!s.empty(), ());
20 size_t const sz = s.size();
21 WriteVarUint(sink, static_cast<uint32_t>(sz - 1));
22 sink.Write(s.c_str(), sz);
23}
24
25template <class TSource>
26void ReadNonEmpty(TSource & src, std::string & s)

Callers 6

SaveFunction · 0.85
SaveMethod · 0.85
WriteNonEmptyMethod · 0.85
SerializeForMwmTmpMethod · 0.85
WriteMethod · 0.85
WriteMethod · 0.85

Calls 4

WriteVarUintFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected