Table of Contents

Struct CsvReadResult<T>

Namespace
FlameCsv.IO
Assembly
FlameCsv.Core.dll

Internal implementation detail.

[DebuggerDisplay("\\{ ReadResult<{typeof(T).Name,nq}> Length: {Buffer.Length}, IsCompleted: {IsCompleted} \\}")]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public readonly struct CsvReadResult<T> where T : unmanaged

Type Parameters

T

Constructors

CsvReadResult(ReadOnlyMemory<T>, bool)

Internal implementation detail.

public CsvReadResult(ReadOnlyMemory<T> buffer, bool isCompleted)

Parameters

buffer ReadOnlyMemory<T>

Read data

isCompleted bool

Whether any more data can be read from the reader after this

Fields

Empty

Returns a read result with an empty buffer and IsCompleted set to false.

public static readonly CsvReadResult<T> Empty

Field Value

CsvReadResult<T>

Properties

Buffer

Unprocessed data read from the data source.

public ReadOnlyMemory<T> Buffer { get; }

Property Value

ReadOnlyMemory<T>

Completed

Returns a read result with an empty buffer and IsCompleted set to true.

public static CsvReadResult<T> Completed { get; }

Property Value

CsvReadResult<T>

IsCompleted

If true, no more data can be read from the data source.

public bool IsCompleted { get; }

Property Value

bool

Methods

Deconstruct(out ReadOnlyMemory<T>, out bool)

Deconstructs the result into its components.

public void Deconstruct(out ReadOnlyMemory<T> buffer, out bool isCompleted)

Parameters

buffer ReadOnlyMemory<T>
isCompleted bool