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
blockAvroFileBlockThe block, when one was read.
Returns
Exceptions
- InvalidOperationException
Objects of the current block are still unread.
- AvroDataException
A block is malformed or truncated.