Method

Serialize

Serializes the struct to a byte array.

tStruct.Serialize()
tStruct.Serialize<TStruct>()

Deserialize

Deserializes the byte array to a struct.

bytes.Deserialize<TStruct>()