NetSerializerReadKnownPacketT Method (NetDataReader, T) |
LiteNetLib |
Reads packet with known type (non alloc variant)
Namespace: LiteNetLib.Utils
Assembly: LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax
C#
public bool ReadKnownPacket<T>( NetDataReader reader, T target ) where T : class, new()
Parameters
- reader
- Type: LiteNetLib.UtilsNetDataReader
NetDataReader with packet - target
- Type: T
Deserialization target
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:LiteNetLib.Utils.NetSerializer.ReadKnownPacket``1(LiteNetLib.Utils.NetDataReader,``0)"]
Return Value
Type: BooleanReturns true if packet in reader is matched type
See Also