C# Class System.IO.Stream

Inheritance: IDisposable
Mostra file Open project: gbarnett/shared-source-cli-2.0 Class Usage Examples

Public Properties

Property Type Description
Null Stream

Private Properties

Property Type Description
BeginRead IAsyncResult
BeginWrite IAsyncResult
CreateWaitHandle WaitHandle
Synchronized Stream
_CloseAsyncActiveEvent void

Public Methods

Method Description
Close ( ) : void
Dispose ( ) : void
EndRead ( IAsyncResult asyncResult ) : int
EndWrite ( IAsyncResult asyncResult ) : void
Flush ( ) : void
Read ( [ buffer, int offset, int count ) : int
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void
WriteByte ( byte value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, Object state ) : IAsyncResult
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, Object state ) : IAsyncResult
CreateWaitHandle ( ) : WaitHandle
Synchronized ( Stream stream ) : Stream
_CloseAsyncActiveEvent ( int asyncActiveCount ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EndRead() public method

public EndRead ( IAsyncResult asyncResult ) : int
asyncResult IAsyncResult
return int

EndWrite() public method

public EndWrite ( IAsyncResult asyncResult ) : void
asyncResult IAsyncResult
return void

Flush() public abstract method

public abstract Flush ( ) : void
return void

Read() public abstract method

public abstract Read ( [ buffer, int offset, int count ) : int
buffer [
offset int
count int
return int

ReadByte() public method

public ReadByte ( ) : int
return int

Seek() public abstract method

public abstract Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public abstract method

public abstract SetLength ( long value ) : void
value long
return void

Write() public abstract method

public abstract Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

WriteByte() public method

public WriteByte ( byte value ) : void
value byte
return void

Property Details

Null public_oe static_oe property

public static Stream Null
return Stream