Skip to content

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

Serialize(T, Stream, SerializerSession, int)

View source
public void Serialize(scoped ref T value, Stream destination, SerializerSession session, int sizeHint = 0)
Serializes the provided value into destination.

Parameters

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