Skip to content

Serializer<T>.Serialize(T, byte[])

Serialize(T, byte[])

View source
public int Serialize(T value, byte[] destination)
Serializes the provided value into destination.

Parameters

valueT
The value to serialize.
destinationbyte[]
The destination where serialized data will be written.

Returns

The length of the serialized data.