NetSerializer.Serialize(T) Method (NetDataWriter, T)

LiteNetLib

NetSerializerSerializeT Method (NetDataWriter, T)

LiteNetLib
Serialize struct to NetDataWriter (fast)

Namespace:  LiteNetLib.Utils
Assembly:  LiteNetLib (in LiteNetLib.dll) Version: 1.0.0.0
Syntax

C#
public void Serialize<T>(
	NetDataWriter writer,
	T obj
)
where T : class, new()

Parameters

writer
Type: LiteNetLib.UtilsNetDataWriter
Serialization target NetDataWriter
obj
Type: T
Struct to serialize

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:LiteNetLib.Utils.NetSerializer.Serialize``1(LiteNetLib.Utils.NetDataWriter,``0)"]

See Also

Reference