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

Inheritance: PeerMessage
Mostrar archivo Open project: haroldma/Universal.Torrent

Public Methods

Method Description
CancelMessage ( ) : System.Text

Creates a new CancelMessage

CancelMessage ( int pieceIndex, int startOffset, int requestLength ) : System.Text

Creates a new CancelMessage

Decode ( byte buffer, int offset, int length ) : void
Encode ( byte buffer, int offset ) : int
Equals ( object obj ) : bool
GetHashCode ( ) : int
ToString ( ) : string

Method Details

CancelMessage() public method

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

CancelMessage() public method

Creates a new CancelMessage
public CancelMessage ( int pieceIndex, int startOffset, int requestLength ) : System.Text
pieceIndex int The index of the piece to cancel
startOffset int The offset in bytes of the block of data to cancel
requestLength int The length in bytes of the block of data to cancel
return System.Text

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

ToString() public method

public ToString ( ) : string
return string