MCPcopy Create free account
hub / github.com/apache/trafficserver / packToBuffer

Method packToBuffer

plugins/esi/common/DocNode.cc:126–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void
127DocNodeList::packToBuffer(string &buffer) const
128{
129 int32_t n_elements = size();
130 buffer.append(reinterpret_cast<const char *>(&n_elements), sizeof(n_elements));
131 for (const auto &iter : *this) {
132 iter.pack(buffer);
133 }
134}
135
136bool
137DocNodeList::unpack(const char *data, int data_len)

Callers 1

packMethod · 0.80

Calls 3

sizeFunction · 0.85
appendMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected