Struct CsvReadResult<T>
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
boolWhether 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
Properties
Buffer
Unprocessed data read from the data source.
public ReadOnlyMemory<T> Buffer { get; }
Property Value
Completed
Returns a read result with an empty buffer and IsCompleted set to true
.
public static CsvReadResult<T> Completed { get; }
Property Value
IsCompleted
If true
, no more data can be read from the data source.
public bool IsCompleted { get; }
Property Value
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