Skip to content

ObjectSerializer.Serialize(object, Span<byte>, SerializerSession, Type)

Serialize(object, Span<byte>, SerializerSession, Type)

View source
public void Serialize(object value, ref Span<byte> destination, SerializerSession session, Type type)
Serializes the provided value into destination.

Parameters

valueobject
The value to serialize.
destinationSpan<byte>
The destination where serialized data will be written.
sessionSerializerSession
The serializer session.
typeType
The expected type of the value.