mirror of
https://github.com/SabreTools/SabreTools.IO.git
synced 2026-02-14 13:46:12 +00:00
21 lines
408 B
C#
21 lines
408 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.IO.Test.Extensions
|
|
{
|
|
[StructLayout(LayoutKind.Explicit)]
|
|
internal struct TestStructExplicit
|
|
{
|
|
[FieldOffset(0)]
|
|
public int FirstValue;
|
|
|
|
[FieldOffset(4)]
|
|
public int SecondValue;
|
|
|
|
[FieldOffset(4)]
|
|
public ushort ThirdValue;
|
|
|
|
[FieldOffset(6)]
|
|
public short FourthValue;
|
|
}
|
|
}
|