C# Class Microsoft.SqlServer.TDS.AutoTDSStream

Stream that wraps TDS stream with automatic dispatch
Inheritance: Stream
Show file Open project: dotnet/corefx

Public Methods

Method Description
AutoTDSStream ( TDSStream innerTDSStream ) : System

Initialization constructor

AutoTDSStream ( TDSStream innerTDSStream, bool closeInnerStream ) : System

Initialization constructor

Close ( ) : void

Close the stream

Flush ( ) : void

Flush the data into the underlying stream

Read ( byte buffer, int offset, int count ) : int

Read the data from the stream

Seek ( long offset, SeekOrigin origin ) : long

Seek position in the stream

SetLength ( long value ) : void

Set stream length

Write ( byte buffer, int offset, int count ) : void

Write data into the stream

Method Details

AutoTDSStream() public method

Initialization constructor
public AutoTDSStream ( TDSStream innerTDSStream ) : System
innerTDSStream TDSStream
return System

AutoTDSStream() public method

Initialization constructor
public AutoTDSStream ( TDSStream innerTDSStream, bool closeInnerStream ) : System
innerTDSStream TDSStream
closeInnerStream bool
return System

Close() public method

Close the stream
public Close ( ) : void
return void

Flush() public method

Flush the data into the underlying stream
public Flush ( ) : void
return void

Read() public method

Read the data from the stream
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

Seek position in the stream
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

Set stream length
public SetLength ( long value ) : void
value long
return void

Write() public method

Write data into the stream
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void