public static byte[] ProcessPushScreenData(PushScreenData b) { PushScreenData2 b2 = new PushScreenData2(); b2.Header1 = 0x46; b2.Header2 = 0x52; b2.Header3 = 0x53; b2.Header4 = 0x1; b2.BlockX = b.BlockX; b2.BlockY = b.BlockY; b2.CursorX = b.CursorX; b2.CursorY = b.CursorY; b2.DataSZ = b.Data == null ? 0 : b.Data.LongLength; b2.DataType = b.DataType; b2.FailedCode = b.FailedCode; b2.NumChangedBlocks = b.ChangedBlocks == null ? 0 : b.ChangedBlocks.Count; b2.X = b.X; b2.Y = b.Y; byte[] data = CommonUtilities.Combine(CommonUtilities.Serialize <PushScreenData2>(b2), b.Data == null ? new byte[0] : b.Data, b.ChangedBlocks == null ? new byte[0] : ConvertListInt64ToByte(b.ChangedBlocks)); return(data); }