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

Method flush

include/shared/rpc/MessageStorage.h:66–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 void
67 flush()
68 {
69 if (_bw.size() == 0) {
70 return;
71 }
72
73 if (_written == 0) {
74 _content.reserve(_bw.size());
75 } else {
76 // need more space.
77 _content.reserve(_written + _bw.size());
78 }
79
80 _content.append(_bw.data(), _bw.size());
81 _written += _bw.size();
82
83 _bw.clear();
84 }
85
86 std::string
87 str()

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.45
reserveMethod · 0.45
appendMethod · 0.45
dataMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected