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

Function EncodeReservedFieldOfLengthByte

source/src/enet_encap/cpf.c:490–497  ·  view source on GitHub ↗

* @brief Encodes the reserved byte in the message router response * * @param message_router_response Router Response message to be processed * @param outgoing_message The outgoing message object * * @return New size of the message buffer */

Source from the content-addressed store, hash-verified

488 * @return New size of the message buffer
489 */
490int EncodeReservedFieldOfLengthByte(
491 const CipMessageRouterResponse *const message_router_response,
492 ENIPMessage *const outgoing_message) {
493 outgoing_message->used_message_length += AddSintToMessage(
494 message_router_response->reserved,
495 &outgoing_message->current_message_position);
496 return outgoing_message->used_message_length;
497}
498
499/**
500 * @brief Encodes the general status of a Router Response

Callers 1

AssembleLinearMessageFunction · 0.85

Calls 1

AddSintToMessageFunction · 0.85

Tested by

no test coverage detected