Table of Contents

Interface ICsvPipeWriter<T>

Namespace
FlameCsv.IO
Assembly
FlameCsv.Core.dll

Internal implementation detail.

[EditorBrowsable(EditorBrowsableState.Advanced)]
public interface ICsvPipeWriter<T> : IBufferWriter<T> where T : unmanaged

Type Parameters

T
Inherited Members

Properties

NeedsFlush

Whether the possible internal buffer is nearly full and should be flushed.

bool NeedsFlush { get; }

Property Value

bool

Methods

Complete(Exception?)

Completes the reader, flushing unflushed data if exception is null.

void Complete(Exception? exception)

Parameters

exception Exception

Exception observed when writing the data. If null, pending unflushed data does not get flushed.

CompleteAsync(Exception?, CancellationToken)

Completes the reader, flushing unflushed data if exception is null.

ValueTask CompleteAsync(Exception? exception, CancellationToken cancellationToken = default)

Parameters

exception Exception

Exception observed when writing the data. If null, pending unflushed data does not get flushed.

cancellationToken CancellationToken

Returns

ValueTask

Flush()

Flushes the writer, ensuring that the written data is transported to the underlying target.

void Flush()

FlushAsync(CancellationToken)

Flushes the writer, ensuring that the written data is transported to the underlying target.

ValueTask FlushAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

ValueTask