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

Function EncodeNullAddressItem

source/src/enet_encap/cpf.c:297–305  ·  view source on GitHub ↗

* @brief Encodes a Null Address Item into the message frame * @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

295 * @return The new size of the message frame after encoding
296 */
297int EncodeNullAddressItem(ENIPMessage *const outgoing_message) {
298 outgoing_message->used_message_length += AddIntToMessage(
299 kCipItemIdNullAddress,
300 &outgoing_message->current_message_position);
301 /* null address item -> address length set to 0 */
302 outgoing_message->used_message_length += AddIntToMessage(0,
303 &outgoing_message->current_message_position);
304 return outgoing_message->used_message_length;
305}
306
307/**
308 * Encodes a Connected Address Item into the message frame

Callers 1

AssembleLinearMessageFunction · 0.85

Calls 1

AddIntToMessageFunction · 0.85

Tested by

no test coverage detected