summaryrefslogtreecommitdiff
path: root/Assembly_Firstpass/Steamworks/SteamDatagramHostedAddress.cs
blob: 173dc8f0452733db64306462f2e2dc2c07f2e97d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Runtime.InteropServices;

namespace Steamworks;

[Serializable]
[StructLayout(LayoutKind.Sequential, Pack = 8)]
public struct SteamDatagramHostedAddress
{
	public int m_cbSize;

	[MarshalAs(UnmanagedType.ByValArray, SizeConst = 128)]
	public byte[] m_data;

	public void Clear()
	{
		m_cbSize = 0;
		m_data = new byte[128];
	}
}