protected override void OnParseEntityPart2(FFMsg_G2H msg, ref List <byte> buffer) { FFMsg_G2H_1 msg2 = msg as FFMsg_G2H_1; buffer.SetValue(msg2.SegmentCount, 2); buffer.SetValue(msg2.SegmentNumber, 2); }
protected override void OnParseBufferPart2(FFMsg_G2H msg, byte[] buffer, ref int offset) { FFMsg_G2H_1 msg2 = msg as FFMsg_G2H_1; msg2.SegmentNumber = buffer.GetValue <ushort>(offset, 2); offset += 2; msg2.SegmentCount = buffer.GetValue <ushort>(offset, 2); offset += 2; }