Files
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

28 lines
848 B
C#

using System;
using System.Runtime.InteropServices;
namespace Lskj.AttachStart.Service
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct C2S2C_BackgroundFileData
{
public const uint ID = 65545;
public MsgHeader header;
public int dwErrId;
public int dwTotalCount;
public int dwPacketOrder;
public int dwPacketLen;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)]
public byte[] FileData;
public C2S2C_BackgroundFileData(bool autoSet)
{
this.FileData = new byte[1024];
this.dwErrId = this.dwTotalCount = this.dwPacketOrder = this.dwPacketLen = 0;
this.header = new MsgHeader();
this.header.dwType = 65545;
this.header.dwLen = (uint)Marshal.SizeOf(this);
}
}
}