MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / EncodeDataItemType

Function EncodeDataItemType

source/src/enet_encap/cpf.c:381–388  ·  view source on GitHub ↗

* Adds the data item type to the message frame * * @param common_packet_format_data_item The Common Packet Format data structure from which the message is constructed * @param outgoing_message The outgoing message object * * @return The new size of the message frame after encoding */

Source from the content-addressed store, hash-verified

379 * @return The new size of the message frame after encoding
380 */
381int EncodeDataItemType(
382 const CipCommonPacketFormatData *const common_packet_format_data_item,
383 ENIPMessage *const outgoing_message) {
384 outgoing_message->used_message_length += AddIntToMessage(
385 common_packet_format_data_item->data_item.type_id,
386 &outgoing_message->current_message_position);
387 return outgoing_message->used_message_length;
388}
389
390/**
391 * Adds the data item section length to the message frame

Callers 1

AssembleLinearMessageFunction · 0.85

Calls 1

AddIntToMessageFunction · 0.85

Tested by

no test coverage detected