Example #1
0
        protected override void OnParseEntityPart2(FFMsg_H2G msg, ref List <byte> buffer)
        {
            FFMsg_H2G_1 msg2 = msg as FFMsg_H2G_1;

            buffer.SetValue(msg2.SegmentCount, 2);
            buffer.SetValue(msg2.SegmentNumber, 2);
        }
Example #2
0
        protected override void OnParseBufferPart2(FFMsg_H2G msg, byte[] buffer, ref int offset)
        {
            FFMsg_H2G_1 msg2 = msg as FFMsg_H2G_1;

            msg2.SegmentNumber = buffer.GetValue <ushort>(offset, 2);
            offset            += 2;
            msg2.SegmentCount  = buffer.GetValue <ushort>(offset, 2);
            offset            += 2;
        }