C# Class MySql.Data.MySqlClient.MySqlStream

Summary description for MySqlStream.
ファイルを表示 Open project: Top-Cat/SteamBot Class Usage Examples

Private Properties

Property Type Description
ReadFully void

Public Methods

Method Description
Close ( ) : void
LoadPacket ( ) : void

LoadPacket loads up and decodes the header of the incoming packet.

MySqlStream ( Encoding encoding ) : System
MySqlStream ( Stream baseStream, Encoding encoding, bool compress ) : System
ReadPacket ( ) : MySqlPacket

ReadPacket is called by NativeDriver to start reading the next packet on the stream.

ResetTimeout ( int timeout ) : void
SendEntirePacketDirectly ( byte buffer, int count ) : void
SendPacket ( MySqlPacket packet ) : void

Private Methods

Method Description
ReadFully ( Stream stream, byte buffer, int offset, int count ) : void

Reads the specified number of bytes from the stream and stores them at given offset in the buffer. Throws EndOfStreamException if not all bytes can be read.

Method Details

Close() public method

public Close ( ) : void
return void

LoadPacket() public method

LoadPacket loads up and decodes the header of the incoming packet.
public LoadPacket ( ) : void
return void

MySqlStream() public method

public MySqlStream ( Encoding encoding ) : System
encoding System.Text.Encoding
return System

MySqlStream() public method

public MySqlStream ( Stream baseStream, Encoding encoding, bool compress ) : System
baseStream Stream
encoding System.Text.Encoding
compress bool
return System

ReadPacket() public method

ReadPacket is called by NativeDriver to start reading the next packet on the stream.
public ReadPacket ( ) : MySqlPacket
return MySqlPacket

ResetTimeout() public method

public ResetTimeout ( int timeout ) : void
timeout int
return void

SendEntirePacketDirectly() public method

public SendEntirePacketDirectly ( byte buffer, int count ) : void
buffer byte
count int
return void

SendPacket() public method

public SendPacket ( MySqlPacket packet ) : void
packet MySqlPacket
return void