Skip to content

ValueSerializer<T>.Serialize(T, Stream, int)

Serialize(T, Stream, int)

View source
public void Serialize(scoped ref 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.