MCPcopy Create free account
hub / github.com/dalathegreat/Battery-Emulator / append

Method append

Software/src/lib/eModbus-eModbus/ModbusMessage.cpp:96–99  ·  view source on GitHub ↗

Add append() for two ModbusMessages or a std::vector to be appended

Source from the content-addressed store, hash-verified

94
95// Add append() for two ModbusMessages or a std::vector<uint8_t> to be appended
96void ModbusMessage::append(ModbusMessage& m) {
97 MM_data.reserve(size() + m.size());
98 MM_data.insert(MM_data.end(), m.begin(), m.end());
99}
100
101void ModbusMessage::append(std::vector<uint8_t>& m) {
102 MM_data.reserve(size() + m.size());

Callers 3

describeFunction · 0.45
validateFunction · 0.45
localRequestMethod · 0.45

Calls 5

sizeFunction · 0.85
reserveMethod · 0.80
sizeMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected