mirror of
https://github.com/SabreTools/SabreTools.IO.git
synced 2026-02-13 13:46:10 +00:00
24 lines
501 B
C#
24 lines
501 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;
|
|
|
|
[FieldOffset(8), MarshalAs(UnmanagedType.LPStr)]
|
|
public string? FifthValue;
|
|
}
|
|
}
|