C# Class Squared.Task.IO.AsyncTextReader

Inheritance: PendingOperationManager, IDisposable
Show file Open project: sq/Fracture Class Usage Examples

Public Properties

Property Type Description
DefaultEncoding Encoding

Public Methods

Method Description
AsyncTextReader ( IAsyncDataSource dataSource, Encoding encoding, int bufferSize = DefaultBufferSize, bool ownsDataSource = true ) : System
AsyncTextReader ( IAsyncDataSource dataSource, bool ownsDataSource = true ) : System
Dispose ( ) : void
DisposeAndGetRemainingBytes ( ) : ArraySegment
Peek ( ) : Future
Read ( bool advance = true ) : Future
Read ( char buffer, int offset, int count ) : Future
ReadLine ( ) : Future
ReadToEnd ( ) : Future

Private Methods

Method Description
AllocateBuffer ( ) : void
DecodeBuffer ( int bytesInBuffer ) : void
DecodeMoreData ( ) : Future
GetCurrentCharacter ( char &value ) : bool
GetCurrentCharacterAndAdvance ( char &value ) : bool
ReadDecodedCharactersUntilSentinel ( CharacterBuffer buffer, char sentinel ) : bool
ReadMoreData ( ) : Future
ReadNextCharacter ( ) : bool
ReturnBufferValue ( StringBuilder buffer ) : string

Method Details

AsyncTextReader() public method

public AsyncTextReader ( IAsyncDataSource dataSource, Encoding encoding, int bufferSize = DefaultBufferSize, bool ownsDataSource = true ) : System
dataSource IAsyncDataSource
encoding System.Text.Encoding
bufferSize int
ownsDataSource bool
return System

AsyncTextReader() public method

public AsyncTextReader ( IAsyncDataSource dataSource, bool ownsDataSource = true ) : System
dataSource IAsyncDataSource
ownsDataSource bool
return System

Dispose() public method

public Dispose ( ) : void
return void

DisposeAndGetRemainingBytes() public method

public DisposeAndGetRemainingBytes ( ) : ArraySegment
return ArraySegment

Peek() public method

public Peek ( ) : Future
return Future

Read() public method

public Read ( bool advance = true ) : Future
advance bool
return Future

Read() public method

public Read ( char buffer, int offset, int count ) : Future
buffer char
offset int
count int
return Future

ReadLine() public method

public ReadLine ( ) : Future
return Future

ReadToEnd() public method

public ReadToEnd ( ) : Future
return Future

Property Details

DefaultEncoding public static property

public static Encoding DefaultEncoding
return Encoding