* 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 */
| 379 | * @return The new size of the message frame after encoding |
| 380 | */ |
| 381 | int 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 |
no test coverage detected