Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.IO.StreamReader.NullStreamReader Class Referencesealed

Public Member Functions

override int Peek ()
 
override int Read ()
 
override int Read (char[] buffer, int index, int count)
 
override string ReadLine ()
 
override string ReadToEnd ()
 
override void Close ()
 
void Dispose ()
 
void DiscardBufferedData ()
 
override int Read (Span< char > buffer)
 
override int ReadBlock (char[] buffer, int index, int count)
 
override int ReadBlock (Span< char > buffer)
 
override Task< string?> ReadLineAsync ()
 
override Task< stringReadToEndAsync ()
 
override Task< int > ReadAsync (char[] buffer, int index, int count)
 
override ValueTask< int > ReadAsync (Memory< char > buffer, CancellationToken cancellationToken=default(CancellationToken))
 
override Task< int > ReadBlockAsync (char[] buffer, int index, int count)
 
override ValueTask< int > ReadBlockAsync (Memory< char > buffer, CancellationToken cancellationToken=default(CancellationToken))
 
object GetLifetimeService ()
 
virtual object InitializeLifetimeService ()
 

Static Public Member Functions

static TextReader Synchronized (TextReader reader)
 

Static Public Attributes

static new readonly StreamReader Null = new NullStreamReader()
 

Protected Member Functions

override void Dispose (bool disposing)
 
MarshalByRefObject MemberwiseClone (bool cloneIdentity)
 

Package Functions

override int ReadBuffer ()
 
override async ValueTask< int > ReadAsyncInternal (Memory< char > buffer, CancellationToken cancellationToken)
 
async ValueTask< int > ReadBlockAsyncInternal (Memory< char > buffer, CancellationToken cancellationToken)
 

Properties

override Encoding CurrentEncoding [get]
 
virtual Stream BaseStream [get]
 
bool EndOfStream [get]
 

Private Member Functions

void CheckAsyncTaskInProgress ()
 
int ReadSpan (Span< char > buffer)
 
void CompressBuffer (int n)
 
void DetectEncoding ()
 
bool IsPreamble ()
 
async Task< stringReadLineAsyncInternal ()
 
async Task< stringReadToEndAsyncInternal ()
 
async ValueTask< int > ReadBufferAsync (CancellationToken cancellationToken)
 
void ThrowIfDisposed ()
 

Static Private Member Functions

static void ThrowAsyncIOInProgress ()
 
static Stream ValidateArgsAndOpenPath (string path, Encoding encoding, FileStreamOptions options)
 
static Stream ValidateArgsAndOpenPath (string path, Encoding encoding, int bufferSize)
 
static void ValidateArgs (string path, Encoding encoding)
 

Private Attributes

readonly Stream _stream
 
Encoding _encoding
 
Decoder _decoder
 
readonly byte[] _byteBuffer
 
char[] _charBuffer
 
int _charPos
 
int _charLen
 
int _byteLen
 
int _bytePos
 
int _maxCharsPerBuffer
 
bool _disposed
 
bool _detectEncoding
 
bool _checkPreamble
 
bool _isBlocked
 
readonly bool _closable
 
Task _asyncReadTask = Task.CompletedTask
 

Detailed Description

Definition at line 10 of file StreamReader.cs.


The documentation for this class was generated from the following file: