Table of Contents

Method Read

Namespace
AvroSharp.Messages
Assembly
AvroSharp.dll

Read(ReadOnlySpan<byte>)

Reads one message.

public T Read(ReadOnlySpan<byte> message)

Parameters

message ReadOnlySpan<byte>

The whole message: the header and the object's encoding, with nothing after it.

Returns

T

Exceptions

AvroDataException

The message has no single-object header, the resolver does not know its schema, or its data is malformed or has bytes left over.