MCPcopy Create free account
hub / github.com/COVESA/vsomeip / reset

Method reset

implementation/message/src/serializer.cpp:90–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void serializer::reset() {
91 if (buffer_shrink_threshold_) {
92 if (data_.size() < (data_.capacity() >> 1)) {
93 shrink_count_++;
94 } else {
95 shrink_count_ = 0;
96 }
97 }
98 data_.clear();
99 if (buffer_shrink_threshold_ && shrink_count_ > buffer_shrink_threshold_) {
100 data_.shrink_to_fit();
101 shrink_count_ = 0;
102 }
103}
104
105} // namespace vsomeip_v3

Callers 5

deserializeMethod · 0.45
serialize_and_sendMethod · 0.45
deserialize_dataMethod · 0.45
routingmanagerd_processFunction · 0.45

Calls 3

capacityMethod · 0.80
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected