Show / Hide Table of Contents

Class TextBufferReader

Represents TextReader wrapper for ReadOnlySequence<T> type.

Inheritance
Object
MarshalByRefObject
TextReader
TextBufferReader
Implements
IDisposable
Inherited Members
TextReader.Null
TextReader.Close()
TextReader.Dispose()
TextReader.Dispose(Boolean)
TextReader.Synchronized(TextReader)
MarshalByRefObject.GetLifetimeService()
MarshalByRefObject.InitializeLifetimeService()
MarshalByRefObject.MemberwiseClone(Boolean)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: DotNext.IO
Assembly: DotNext.IO.dll
Syntax
public sealed class TextBufferReader : TextReader, IDisposable

Constructors

| Improve this Doc View Source

TextBufferReader(ReadOnlySequence<Char>)

Initializes a new reader for the buffer containing characters.

Declaration
public TextBufferReader(ReadOnlySequence<char> sequence)
Parameters
Type Name Description
ReadOnlySequence<Char> sequence

The buffer containing characters.

| Improve this Doc View Source

TextBufferReader(ReadOnlyMemory<Char>)

Initializes a new reader for the buffer containing characters.

Declaration
public TextBufferReader(ReadOnlyMemory<char> chars)
Parameters
Type Name Description
ReadOnlyMemory<Char> chars

The buffer containing characters.

Methods

| Improve this Doc View Source

Peek()

Declaration
public override int Peek()
Returns
Type Description
Int32
Overrides
TextReader.Peek()
| Improve this Doc View Source

Read()

Declaration
public override int Read()
Returns
Type Description
Int32
Overrides
TextReader.Read()
| Improve this Doc View Source

Read(Char[], Int32, Int32)

Declaration
public override int Read(char[] buffer, int index, int count)
Parameters
Type Name Description
Char[] buffer
Int32 index
Int32 count
Returns
Type Description
Int32
Overrides
TextReader.Read(Char[], Int32, Int32)
| Improve this Doc View Source

Read(Span<Char>)

Declaration
public override int Read(Span<char> buffer)
Parameters
Type Name Description
Span<Char> buffer
Returns
Type Description
Int32
Overrides
TextReader.Read(Span<Char>)
| Improve this Doc View Source

ReadAsync(Char[], Int32, Int32)

Declaration
public override Task<int> ReadAsync(char[] buffer, int index, int count)
Parameters
Type Name Description
Char[] buffer
Int32 index
Int32 count
Returns
Type Description
Task<Int32>
Overrides
TextReader.ReadAsync(Char[], Int32, Int32)
| Improve this Doc View Source

ReadAsync(Memory<Char>, CancellationToken)

Declaration
public override ValueTask<int> ReadAsync(Memory<char> buffer, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
Memory<Char> buffer
CancellationToken token
Returns
Type Description
ValueTask<Int32>
Overrides
TextReader.ReadAsync(Memory<Char>, CancellationToken)
| Improve this Doc View Source

ReadBlock(Char[], Int32, Int32)

Declaration
public override int ReadBlock(char[] buffer, int index, int count)
Parameters
Type Name Description
Char[] buffer
Int32 index
Int32 count
Returns
Type Description
Int32
Overrides
TextReader.ReadBlock(Char[], Int32, Int32)
| Improve this Doc View Source

ReadBlock(Span<Char>)

Declaration
public override int ReadBlock(Span<char> buffer)
Parameters
Type Name Description
Span<Char> buffer
Returns
Type Description
Int32
Overrides
TextReader.ReadBlock(Span<Char>)
| Improve this Doc View Source

ReadBlockAsync(Char[], Int32, Int32)

Declaration
public override Task<int> ReadBlockAsync(char[] buffer, int index, int count)
Parameters
Type Name Description
Char[] buffer
Int32 index
Int32 count
Returns
Type Description
Task<Int32>
Overrides
TextReader.ReadBlockAsync(Char[], Int32, Int32)
| Improve this Doc View Source

ReadBlockAsync(Memory<Char>, CancellationToken)

Declaration
public override ValueTask<int> ReadBlockAsync(Memory<char> buffer, CancellationToken token = default(CancellationToken))
Parameters
Type Name Description
Memory<Char> buffer
CancellationToken token
Returns
Type Description
ValueTask<Int32>
Overrides
TextReader.ReadBlockAsync(Memory<Char>, CancellationToken)
| Improve this Doc View Source

ReadLine()

Declaration
public override string ReadLine()
Returns
Type Description
String
Overrides
TextReader.ReadLine()
| Improve this Doc View Source

ReadLineAsync()

Declaration
public override Task<string> ReadLineAsync()
Returns
Type Description
Task<String>
Overrides
TextReader.ReadLineAsync()
| Improve this Doc View Source

ReadToEnd()

Declaration
public override string ReadToEnd()
Returns
Type Description
String
Overrides
TextReader.ReadToEnd()
| Improve this Doc View Source

ReadToEndAsync()

Declaration
public override Task<string> ReadToEndAsync()
Returns
Type Description
Task<String>
Overrides
TextReader.ReadToEndAsync()
| Improve this Doc View Source

Reset()

Resets the reader so it can be used again.

Declaration
public void Reset()
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Implements

System.IDisposable

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)
ObjectExtensions.As<T>(T)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX