Table of Contents

Method TryReadBlock

Namespace
AvroSharp.Containers
Assembly
AvroSharp.dll

TryReadBlock(out AvroFileBlock?)

Reads the next block as stored, without decompressing or decoding it, for WriteBlock(AvroFileBlock, bool). Blocks of no objects are skipped. Reading objects and blocks can be mixed, a whole block at a time.

public bool TryReadBlock(out AvroFileBlock? block)

Parameters

block AvroFileBlock

The block, when one was read.

Returns

bool

false at the end of the file.

Exceptions

InvalidOperationException

Objects of the current block are still unread.

AvroDataException

A block is malformed or truncated.