using System; using System.Runtime.InteropServices; namespace Brutal.RakNetApi { [StructLayout(LayoutKind.Sequential)] public unsafe partial struct Packet { /// The system that send this packet. public SystemAddress SystemAddress; /// A unique identifier for the system that sent this packet, regardless of IP address (internal / external / remote system)Only valid once a connection has been established (ID_CONNECTION_REQUEST_ACCEPTED, or ID_NEW_INCOMING_CONNECTION)Until that time, will be UNASSIGNED_RAKNET_GUID public RakNetGUID Guid; /// The length of the data in bytes public uint Length; /// The length of the data in bits public uint BitSize; /// The data from the sender public byte* Data; public Bool8 DeleteData; public Bool8 WasGeneratedLocally; } }