NetSerializer Class |
LiteNetLib |
[Missing <summary> documentation for "T:LiteNetLib.Utils.NetSerializer"]
Inheritance Hierarchy
Namespace: LiteNetLib.Utils
Assembly: LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax
C#
public sealed class NetSerializer
The NetSerializer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
NetSerializer | Initializes a new instance of the NetSerializer class | |
NetSerializer(NetSerializerHasher) | Initializes a new instance of the NetSerializer class |
Methods
Name | Description | |
---|---|---|
ReadAllPackets(NetDataReader) |
Reads all available data from NetDataReader and calls OnReceive delegates
| |
ReadAllPacketsT(NetDataReader, T) |
Reads all available data from NetDataReader and calls OnReceive delegates
| |
ReadKnownPacketT(NetDataReader) |
Reads packet with known type
| |
ReadKnownPacketT(NetDataReader, T) |
Reads packet with known type (non alloc variant)
| |
ReadPacket(NetDataReader) |
Reads one packet from NetDataReader and calls OnReceive delegate
| |
ReadPacket(NetDataReader, Object) |
Reads one packet from NetDataReader and calls OnReceive delegate
| |
RegisterT |
Register packet type for direct reading (ReadKnownPacket)
| |
RegisterCustomTypeT |
Register custom property type
| |
RegisterCustomTypeT(FuncT) |
Register custom property type
| |
RegisterCustomTypeT(ActionNetDataWriter, T, FuncNetDataReader, T) |
Register custom property type
| |
SerializeT(T) |
Serialize struct to byte array
| |
SerializeT(NetDataWriter, T) |
Serialize struct to NetDataWriter (fast)
| |
SubscribeT(ActionT, FuncT) |
Register and subscribe to packet receive event
| |
SubscribeT, TUserData(ActionT, TUserData, FuncT) |
Register and subscribe to packet receive event (with userData)
| |
SubscribeReusableT(ActionT) |
Register and subscribe to packet receive event
This metod will overwrite last received packet class on receive (less garbage)
| |
SubscribeReusableT, TUserData(ActionT, TUserData) |
Register and subscribe to packet receive event
This metod will overwrite last received packet class on receive (less garbage)
|
See Also