MCPcopy Create free account
hub / github.com/Icinga/icinga2 / PackString

Function PackString

lib/base/object-packer.cpp:132–136  ·  view source on GitHub ↗

* Append the given string's length (BE uint64) and the string itself */

Source from the content-addressed store, hash-verified

130 * Append the given string's length (BE uint64) and the string itself
131 */
132static inline void PackString(const String& string, std::string& builder)
133{
134 PackUInt64BE(string.GetLength(), builder);
135 builder += string.GetData();
136}
137
138/**
139 * Append the given array

Callers 2

PackDictionaryFunction · 0.85
PackAnyFunction · 0.85

Calls 2

PackUInt64BEFunction · 0.85
GetLengthMethod · 0.45

Tested by

no test coverage detected