<PackageReference Include="Azure.Storage.Blobs" Version="12.25.0-beta.1" />

AvroReader

public virtual long BlockOffset { get; }

The byte offset within the Avro file (both header and data) of the start of the current block.

public virtual long ObjectIndex { get; }

The index of the current object within the current block.

public AvroReader(Stream dataStream)

Constructor for an AvroReader that will read from the beginning of an Avro file.

public AvroReader(Stream dataStream, Stream headerStream, long currentBlockOffset, long indexWithinCurrentBlock)

Constructor for an Avro Reader that will read beginning in the middle of an Avro file.

public AvroReader()

Constructor for mocking. Do not use.

public void Dispose()

protected virtual void Dispose(bool disposing)

public virtual bool HasNext()

public virtual Task Initalize(bool async, CancellationToken cancellationToken = default)

public virtual Task<object> Next(bool async, CancellationToken cancellationToken = default)