C# Class OctoTorrent.Client.Messages.Standard.BitfieldMessage

Inheritance: PeerMessage
Show file Open project: Eskat0n/OctoTorrent Class Usage Examples

Public Methods

Method Description
BitfieldMessage ( BitField bitfield ) : Common

Creates a new BitfieldMessage

BitfieldMessage ( int length ) : Common

Creates a new BitfieldMessage

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

Method Details

BitfieldMessage() public method

Creates a new BitfieldMessage
public BitfieldMessage ( BitField bitfield ) : Common
bitfield BitField The bitfield to use
return Common

BitfieldMessage() public method

Creates a new BitfieldMessage
public BitfieldMessage ( int length ) : Common
length int The length of the bitfield
return Common

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