Skip to content

Serializer.Serialize(T, Stream, int)

Serialize(T, Stream, int)

View source
public void Serialize<T>(T value, Stream destination, int sizeHint = 0)
Serializes the provided value into destination.

Parameters

valueT
The value to serialize.
destinationStream
The destination where serialized data will be written.
sizeHintint
The estimated upper bound for the length of the serialized data.