Table of Contents

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

block AvroFileBlock

The block.

recompress bool

Whether to decompress and compress the block even when the codecs are the same.

cancellationToken CancellationToken

Cancels the writes.

Returns

ValueTask

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.