110,553
社区成员
发帖
与我相关
我的任务
分享
[StructLayout(LayoutKind.Sequential)]
public struct djz
{
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=7 )]
public string jym;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=9 )]
public string dwbh;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=10 )]
public string wdlsh;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=5 )]
public string czy;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=9 )]
public string jyrq;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=10 )]
public string dkpz;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=3 )]
public string cch ;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=40 )]
public string ccms;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=30 )]
public string rev1;
[ MarshalAs( UnmanagedType.ByValTStr, SizeConst=100 )]
public string rev2;
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct djz
{
public fixed byte jym[7];
public fixed byte dwbh[9];
public fixed byte wdlsh[10];
public fixed byte czy[5];
public fixed byte jyrq[9];
public fixed byte dkpz[10];
public fixed byte cch[3];
public fixed byte ccms[40];
public fixed byte rev1[30];
public fixed byte rev2[100];
}