C# Class PeerCastStation.Core.StreamExtension

Mostrar archivo Open project: kumaryu/peercaststation

Public Methods

Method Description
ReadAtom ( this stream ) : Atom
ReadAtomAsync ( this stream ) : Task
ReadAtomAsync ( this stream, CancellationToken cancel_token ) : Task
ReadByteAsync ( this stream ) : Task
ReadByteAsync ( this stream, CancellationToken cancel_token ) : Task
ReadBytes ( this stream, int length ) : byte[]
ReadBytesAsync ( this stream, int length, CancellationToken cancel_token ) : Task
ReadBytesAsync ( this stream, byte buffer, int offset, int length, CancellationToken cancel_token ) : Task
Write ( this stream, Atom atom ) : void
WriteAsync ( this stream, Atom atom ) : Task
WriteAsync ( this stream, Atom atom, CancellationToken cancel_token ) : Task
WriteByteAsync ( this stream, byte value, CancellationToken cancel_token ) : Task
WriteUTF8 ( this stream, string value ) : void
WriteUTF8Async ( this stream, string value ) : Task
WriteUTF8Async ( this stream, string value, CancellationToken cancel_token ) : Task

Method Details

ReadAtom() static public method

static public ReadAtom ( this stream ) : Atom
stream this
return Atom

ReadAtomAsync() static public method

static public ReadAtomAsync ( this stream ) : Task
stream this
return Task

ReadAtomAsync() static public method

static public ReadAtomAsync ( this stream, CancellationToken cancel_token ) : Task
stream this
cancel_token System.Threading.CancellationToken
return Task

ReadByteAsync() public static method

public static ReadByteAsync ( this stream ) : Task
stream this
return Task

ReadByteAsync() public static method

public static ReadByteAsync ( this stream, CancellationToken cancel_token ) : Task
stream this
cancel_token System.Threading.CancellationToken
return Task

ReadBytes() public static method

public static ReadBytes ( this stream, int length ) : byte[]
stream this
length int
return byte[]

ReadBytesAsync() public static method

public static ReadBytesAsync ( this stream, int length, CancellationToken cancel_token ) : Task
stream this
length int
cancel_token System.Threading.CancellationToken
return Task

ReadBytesAsync() public static method

public static ReadBytesAsync ( this stream, byte buffer, int offset, int length, CancellationToken cancel_token ) : Task
stream this
buffer byte
offset int
length int
cancel_token System.Threading.CancellationToken
return Task

Write() static public method

static public Write ( this stream, Atom atom ) : void
stream this
atom Atom
return void

WriteAsync() static public method

static public WriteAsync ( this stream, Atom atom ) : Task
stream this
atom Atom
return Task

WriteAsync() static public method

static public WriteAsync ( this stream, Atom atom, CancellationToken cancel_token ) : Task
stream this
atom Atom
cancel_token System.Threading.CancellationToken
return Task

WriteByteAsync() public static method

public static WriteByteAsync ( this stream, byte value, CancellationToken cancel_token ) : Task
stream this
value byte
cancel_token System.Threading.CancellationToken
return Task

WriteUTF8() static public method

static public WriteUTF8 ( this stream, string value ) : void
stream this
value string
return void

WriteUTF8Async() static public method

static public WriteUTF8Async ( this stream, string value ) : Task
stream this
value string
return Task

WriteUTF8Async() static public method

static public WriteUTF8Async ( this stream, string value, CancellationToken cancel_token ) : Task
stream this
value string
cancel_token System.Threading.CancellationToken
return Task