标签:blog ar io on div 问题 log ad as
[StructLayout(LayoutKind.Sequential,Pack=1)] struct Report_Read_Parameter { byte Confirmation; byte ListID; [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)] byte[] ParameterID; byte Length; [MarshalAs(UnmanagedType.ByValArray, SizeConst = ***)] // based on the Length byte[] ParameterValue; byte Status; }
问题来了,怎么根据字段里的Length来确定byte数组ParameterValue 的长度?
如何实现动态对齐?
标签:blog ar io on div 问题 log ad as
原文地址:http://www.cnblogs.com/fengye87626/p/4173288.html