C# Class Universal.Torrent.Client.Messages.StandardMessages.HaveMessage

Represents a "Have" message
Inheritance: PeerMessage
Show file Open project: haroldma/Universal.Torrent Class Usage Examples

Public Methods

Method Description
Decode ( byte buffer, int offset, int length ) : void
Encode ( byte buffer, int offset ) : int
Equals ( object obj ) : bool
GetHashCode ( ) : int
HaveMessage ( ) : System.Text

Creates a new HaveMessage

HaveMessage ( int pieceIndex ) : System.Text

Creates a new HaveMessage

ToString ( ) : string

Method Details

Decode() public method

public Decode ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

Encode() public method

public Encode ( byte buffer, int offset ) : int
buffer byte
offset int
return int

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

HaveMessage() public method

Creates a new HaveMessage
public HaveMessage ( ) : System.Text
return System.Text

HaveMessage() public method

Creates a new HaveMessage
public HaveMessage ( int pieceIndex ) : System.Text
pieceIndex int The index of the piece that you "have"
return System.Text

ToString() public method

public ToString ( ) : string
return string