Network struct packing fixes

This commit is contained in:
Garry Newman 2019-05-03 10:16:52 +01:00
parent 6be5826f31
commit ea0f19ff8e
3 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
namespace Steamworks.Data
{
[StructLayout( LayoutKind.Sequential, Pack = 0 )]
[StructLayout( LayoutKind.Sequential, Size = 696 )]
public struct ConnectionInfo
{
internal NetworkIdentity identity;

View File

@ -2,7 +2,7 @@
namespace Steamworks.Data
{
[StructLayout( LayoutKind.Explicit, Size = 18 )]
[StructLayout( LayoutKind.Explicit, Size = 18, Pack = 1 )]
public struct NetworkAddress
{
[FieldOffset( 0 )]

View File

@ -2,7 +2,7 @@
namespace Steamworks.Data
{
[StructLayout( LayoutKind.Explicit, Size = 136, Pack = 8 )]
[StructLayout( LayoutKind.Explicit, Size = 136, Pack = 1 )]
public struct NetworkIdentity
{
[FieldOffset( 0 )]