Interface ICsvBufferReader<T>
Internal implementation detail. Reads raw data from an inner source.
public interface ICsvBufferReader<T> : IDisposable, IAsyncDisposable where T : unmanaged
Type Parameters
T
- Inherited Members
Methods
Advance(int)
Advances the reader by the specified number of characters.
void Advance(int count)
Parameters
count
intNumber of characters processed from the read result
Read()
Reads from the inner data source.
CsvReadResult<T> Read()
Returns
- CsvReadResult<T>
The current data available from the reader, and whether any more data can be read.
ReadAsync(CancellationToken)
Reads from the inner data source.
ValueTask<CsvReadResult<T>> ReadAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken
Returns
- ValueTask<CsvReadResult<T>>
The current data available from the reader, and whether any more data can be read.
TryReset()
Attempts to reset the reader to the beginning of the data source.
bool TryReset()
Returns
- bool
true
if the reader was reset successfully;false
if the reader does not support resetting.