V1/Cet.Develop.NETMF.IO/Protocols/Modbus/ModbusCodecBase.cs
/// <summary>
/// Extract the typical header for a request command (server-side)
/// </summary>
/// <param name="command"></param>
/// <param name="body"></param>
Extract the typical header for a request command (server-side)
Extract the typical header for a request command ( server - side )
internal static void PopRequestHeader(
            ModbusCommand command,
            ByteArrayReader body)
        {
            command.Offset = body.ReadUInt16BE();
            command.Count = body.ReadInt16BE();
        }
internal static void PopRequestHeader ( ModbusCommand command , ByteArrayReader body ) { command . Offset = body . ReadUInt16BE ( ) ; command . Count = body . ReadInt16BE ( ) ; }
Extract the typical header for a request command (server-side)
Extract the typical header for a request command ( server - side )
command
ModbusCommand
None
body
ByteArrayReader
None