41 protected override void Dispose(
bool disposing)
148 protected virtual void Dispose(
bool disposing)
181 for (i = 0; i <
count; i++)
199 if ((uint)num > (uint)
buffer.Length)
214 char[]
array =
new char[4096];
232 while (num2 > 0 && num <
count);
242 if ((uint)num > (uint)
buffer.Length)
265 if (num == 13 &&
Peek() == 10)
271 if (stringBuilder.
Length > 0)
277 stringBuilder.
Append((
char)num);
328 return tupleSlim.
Item1.Read(tupleSlim.
Item2.Span);
337 return tupleSlim.
Item1.Read(tupleSlim.
Item2.Span);
364 return tupleSlim.
Item1.ReadBlock(tupleSlim.
Item2.Span);
377 while (num > 0 && i <
buffer.Length);
static ArrayPool< T > Shared
static void SuppressFinalize(object obj)
override string ReadLine()
override int Read(char[] buffer, int index, int count)
override Task< int > ReadAsync(char[] buffer, int index, int count)
override int Read(char[] buffer, int index, int count)
override Task< int > ReadBlockAsync(char[] buffer, int index, int count)
override string ReadLine()
override string ReadToEnd()
override void Dispose(bool disposing)
SyncTextReader(TextReader t)
override Task< string > ReadLineAsync()
override int ReadBlock(char[] buffer, int index, int count)
override Task< string > ReadToEndAsync()
virtual int ReadBlock(char[] buffer, int index, int count)
virtual Task< int > ReadAsync(char[] buffer, int index, int count)
virtual ValueTask< int > ReadBlockAsync(Memory< char > buffer, CancellationToken cancellationToken=default(CancellationToken))
static TextReader Synchronized(TextReader reader)
virtual int ReadBlock(Span< char > buffer)
virtual int Read(Span< char > buffer)
virtual Task< string?> ReadLineAsync()
virtual string ReadToEnd()
virtual async Task< string > ReadToEndAsync()
virtual Task< int > ReadBlockAsync(char[] buffer, int index, int count)
virtual ValueTask< int > ReadAsyncInternal(Memory< char > buffer, CancellationToken cancellationToken)
async ValueTask< int > ReadBlockAsyncInternal(Memory< char > buffer, CancellationToken cancellationToken)
static readonly TextReader Null
virtual ? string ReadLine()
virtual void Dispose(bool disposing)
virtual ValueTask< int > ReadAsync(Memory< char > buffer, CancellationToken cancellationToken=default(CancellationToken))
virtual int Read(char[] buffer, int index, int count)
static string IO_InvalidReadLength
static string ArgumentNull_Buffer
static string Argument_InvalidOffLen
static string ArgumentOutOfRange_NeedNonNegNum
override string ToString()
StringBuilder Append(char value, int repeatCount)
static TaskScheduler Default
static new TaskFactory< TResult > Factory
static Task< TResult > StartNew(Task parent, Func< TResult > function, CancellationToken cancellationToken, TaskCreationOptions creationOptions, InternalTaskOptions internalOptions, TaskScheduler scheduler)
void CopyTo(Span< T > destination)
static CancellationToken None
ConfiguredValueTaskAwaitable ConfigureAwait(bool continueOnCapturedContext)