Method WriteBlockAsync
- Namespace
- AvroSharp.Containers
- Assembly
- AvroSharp.dll
WriteBlockAsync(AvroFileBlock, bool, CancellationToken)
Writes a block read from another file, as WriteBlock(AvroFileBlock, bool) does, asynchronously.
public ValueTask WriteBlockAsync(AvroFileBlock block, bool recompress = false, CancellationToken cancellationToken = default)
Parameters
blockAvroFileBlockThe block.
recompressboolWhether to decompress and compress the block even when the codecs are the same.
cancellationTokenCancellationTokenCancels the writes.
Returns
Exceptions
- ArgumentException
The block's schema is not this file's: their canonical forms differ.
- AvroDataException
The block cannot be decompressed, or decompresses to more than DefaultMaxBlockLength.