C# Class MySql.Data.MySqlClient.MySqlStream

Summary description for MySqlStream.
Afficher le fichier Open project: Top-Cat/SteamBot Class Usage Examples

Private Properties

Свойство Type Description
ReadFully void

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Close ( ) : void
Résultat void

LoadPacket() public méthode

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

MySqlStream() public méthode

public MySqlStream ( Encoding encoding ) : System
encoding System.Text.Encoding
Résultat System

MySqlStream() public méthode

public MySqlStream ( Stream baseStream, Encoding encoding, bool compress ) : System
baseStream Stream
encoding System.Text.Encoding
compress bool
Résultat System

ReadPacket() public méthode

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

ResetTimeout() public méthode

public ResetTimeout ( int timeout ) : void
timeout int
Résultat void

SendEntirePacketDirectly() public méthode

public SendEntirePacketDirectly ( byte buffer, int count ) : void
buffer byte
count int
Résultat void

SendPacket() public méthode

public SendPacket ( MySqlPacket packet ) : void
packet MySqlPacket
Résultat void