mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-02-26 21:41:19 +03:00
Network struct packing fixes
This commit is contained in:
parent
6be5826f31
commit
ea0f19ff8e
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Steamworks.Data
|
||||
{
|
||||
[StructLayout( LayoutKind.Sequential, Pack = 0 )]
|
||||
[StructLayout( LayoutKind.Sequential, Size = 696 )]
|
||||
public struct ConnectionInfo
|
||||
{
|
||||
internal NetworkIdentity identity;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
namespace Steamworks.Data
|
||||
{
|
||||
[StructLayout( LayoutKind.Explicit, Size = 18 )]
|
||||
[StructLayout( LayoutKind.Explicit, Size = 18, Pack = 1 )]
|
||||
public struct NetworkAddress
|
||||
{
|
||||
[FieldOffset( 0 )]
|
||||
|
@ -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 )]
|
||||
|
Loading…
x
Reference in New Issue
Block a user