diff options
author | chai <215380520@qq.com> | 2023-11-25 18:39:02 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-11-25 18:39:02 +0800 |
commit | 0e63c4a2c6dec8dfa260501fb7d73750261ea7b7 (patch) | |
tree | f6f2291be65d195d6082b523a56183c332715240 /Assembly_Firstpass/Steamworks/Packsize.cs |
+ init
Diffstat (limited to 'Assembly_Firstpass/Steamworks/Packsize.cs')
-rw-r--r-- | Assembly_Firstpass/Steamworks/Packsize.cs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Assembly_Firstpass/Steamworks/Packsize.cs b/Assembly_Firstpass/Steamworks/Packsize.cs new file mode 100644 index 0000000..01f6543 --- /dev/null +++ b/Assembly_Firstpass/Steamworks/Packsize.cs @@ -0,0 +1,31 @@ +using System.Runtime.InteropServices; + +namespace Steamworks; + +public static class Packsize +{ + [StructLayout(LayoutKind.Sequential, Pack = 8)] + private struct ValvePackingSentinel_t + { + private uint m_u32; + + private ulong m_u64; + + private ushort m_u16; + + private double m_d; + } + + public const int value = 8; + + public static bool Test() + { + int num = Marshal.SizeOf(typeof(ValvePackingSentinel_t)); + int num2 = Marshal.SizeOf(typeof(RemoteStorageEnumerateUserSubscribedFilesResult_t)); + if (num != 32 || num2 != 616) + { + return false; + } + return true; + } +} |