首页  编辑  

结构的对齐方式

Tags: /C#/其他技巧/   Date Created:

using System . Runtime . InteropServices;

[ StructLayout ( LayoutKind . Sequential, Pack = 1 )]

public struct Struct

{

    public byte Byte;

    public uint Uint;

};