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

Function EncodeConnectedDataItemLength

source/src/enet_encap/cpf.c:436–444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434 */
435
436int EncodeConnectedDataItemLength(
437 const CipMessageRouterResponse *const message_router_response,
438 ENIPMessage *const outgoing_message) {
439 outgoing_message->used_message_length += AddIntToMessage(
440 (EipUint16) ( message_router_response->data_length + 4 + 2 /* TODO: Magic numbers */
441 + (2 * message_router_response->size_of_additional_status) ),
442 &outgoing_message->current_message_position);
443 return outgoing_message->used_message_length;
444}
445
446/**
447 * @brief Encodes a sequence number into the message

Callers 1

AssembleLinearMessageFunction · 0.85

Calls 1

AddIntToMessageFunction · 0.85

Tested by

no test coverage detected