Class AvroSerializer
- Namespace
- AvroSharp.Serialization
- Assembly
- AvroSharp.dll
Serializes and deserializes types with generated serializers (IAvroSerializable<TSelf>) in Avro binary encoding, without delegates or reflection.
public static class AvroSerializer
- Inheritance
-
AvroSerializer
- Inherited Members
Methods
- Deserialize<T>(in ReadOnlySequence<byte>)
Reads a value written with the type's schema from a sequence of buffers.
- Deserialize<T>(in ReadOnlySequence<byte>, AvroSchema)
Reads a value written with
writerSchema, another version of the type's schema, from a sequence of buffers.
- Deserialize<T>(ReadOnlySpan<byte>)
Reads a value written with the type's schema.
- Deserialize<T>(ReadOnlySpan<byte>, AvroSchema)
Reads a value written with
writerSchema, another version of the type's schema.
- Serialize<T>(IBufferWriter<byte>, T)
Writes a value to
output, allocating nothing for a reused buffer writer.
- Serialize<T>(T)
Writes a value to a new array.
- TrySerialize<T>(Span<byte>, T, out int)
Writes a value into
destination, allocating nothing.
See Also
IAvroSerializable<TSelf>