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

Function PackArray

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

* Append the given array */

Source from the content-addressed store, hash-verified

139 * Append the given array
140 */
141static inline void PackArray(const Array::Ptr& arr, std::string& builder)
142{
143 ObjectLock olock(arr);
144
145 builder += '\5';
146 PackUInt64BE(arr->GetLength(), builder);
147
148 for (const Value& value : arr) {
149 PackAny(value, builder);
150 }
151}
152
153/**
154 * Append the given dictionary

Callers 1

PackAnyFunction · 0.85

Calls 3

PackUInt64BEFunction · 0.85
PackAnyFunction · 0.85
GetLengthMethod · 0.45

Tested by

no test coverage detected