Home > Net >  C # byte array structure how to more line structure of variable
C # byte array structure how to more line structure of variable

Time:10-10



Int size=Marshal. SizeOf (typeof (_HEADER_INFO_LIST));
Byte [] infoBuf=new byte [size];
For (int I=0, j=60; I & lt; The size; I++ j++)
{
InfoBuf [I]=myBuf [j];
}
_HEADER_INFO_LIST info=(_HEADER_INFO_LIST) Struct_Transform. BytesToStruct (infoBuf, typeof (_HEADER_INFO_LIST));

I convert byte array into line structure after more structure array need how to do, thank you

CodePudding user response:

Offset features,
  •  Tags:  
  • C#
  • Related