Struct CsvReaderOptions
Represents options for configuring ICsvPipeReader<T>.
public readonly struct CsvReaderOptions
Fields
DefaultBufferSize
The default buffer size in T.
public const int DefaultBufferSize = 4096
Field Value
DefaultMinimumReadSize
The default minimum read size in T.
public const int DefaultMinimumReadSize = 1024
Field Value
Properties
BufferSize
Gets or sets the buffer size in T. If set to -1, the default buffer size is used.
public int BufferSize { get; init; }
Property Value
Exceptions
- ArgumentOutOfRangeException
Thrown if the value is less than 1 and not equal to -1.
LeaveOpen
Gets or sets a value indicating whether the inner stream/reader should be left open after reading.
public bool LeaveOpen { get; init; }
Property Value
MinimumReadSize
Gets or sets the minimum read size in T. If set to -1, the default minimum read size is used.
public int MinimumReadSize { get; init; }
Property Value
Exceptions
- ArgumentOutOfRangeException
Thrown if the value is less than 1 and not equal to -1.
NoDirectBufferAccess
Disable direct buffer reading optimization when reading MemoryStream or StringReader with an exposable buffer.
[EditorBrowsable(EditorBrowsableState.Never)]
public bool NoDirectBufferAccess { get; init; }
Property Value
Methods
EnsureValid<T>(MemoryPool<T>)
Ensures the configured buffer sizes are valid for the specified memory pool.
public void EnsureValid<T>(MemoryPool<T> memoryPool)
Parameters
memoryPool
MemoryPool<T>Pool instance
Type Parameters
T