From 0e63c4a2c6dec8dfa260501fb7d73750261ea7b7 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Sat, 25 Nov 2023 18:39:02 +0800 Subject: + init --- Assembly_Firstpass/Steamworks/Packsize.cs | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Assembly_Firstpass/Steamworks/Packsize.cs (limited to 'Assembly_Firstpass/Steamworks/Packsize.cs') 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; + } +} -- cgit v1.1-26-g67d0