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

Method append_data

implementation/message/src/deserializer.cpp:182–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void deserializer::append_data(const byte_t* _data, std::size_t _length) {
183 std::vector<byte_t>::difference_type offset = (position_ - data_.begin());
184 data_.insert(data_.end(), _data, _data + _length);
185 position_ = data_.begin() + offset;
186 remaining_ += _length;
187}
188
189void deserializer::drop_data(std::size_t _length) {
190 if (position_ + static_cast<std::vector<byte_t>::difference_type>(_length) < data_.end())

Callers 1

TESTFunction · 0.80

Calls 3

beginMethod · 0.80
insertMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected