mirror of
https://github.com/SabreTools/SabreTools.IO.git
synced 2026-04-30 10:50:09 +00:00
This change looks dramatic, but it's just separating out the already-split namespaces into separate top-level folders. In theory, every single one could be built into their own Nuget package. `SabreTools.IO.Meta` builds the normal Nuget package that is used by all other projects and includes all namespaces. `SabreTools.IO` builds to `SabreTools.IO.Common` to avoid overwriting issues on publish.
30 lines
770 B
C#
30 lines
770 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace SabreTools.IO.Extensions.Test
|
|
{
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
internal class TestStructInheritanceParent
|
|
{
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
|
|
public byte[]? Signature;
|
|
|
|
public uint IdentifierType;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
internal class TestStructInheritanceChild1 : TestStructInheritanceParent
|
|
{
|
|
public uint FieldA;
|
|
|
|
public uint FieldB;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
|
internal class TestStructInheritanceChild2 : TestStructInheritanceParent
|
|
{
|
|
public ushort FieldA;
|
|
|
|
public ushort FieldB;
|
|
}
|
|
}
|