C# Class BEncodeLib.TorrentBDecoder

Inheritance: IDisposable
Datei anzeigen Open project: jvandertil/csharp-bencode

Public Methods

Method Description
Decode ( ) : object
Dispose ( ) : void
GetInfoHash ( ) : byte[]
TorrentBDecoder ( Stream stream, Encoding encoding ) : System

Private Methods

Method Description
DecodeByteString ( ) : byte[]
DecodeDictionary ( ) : object>.IDictionary
DecodeList ( ) : IList
DecodeLong ( ) : long
DecodeString ( ) : string
GetNextIndicator ( ) : byte
Read ( int length ) : byte[]
Read ( ) : int

Method Details

Decode() public method

public Decode ( ) : object
return object

Dispose() public method

public Dispose ( ) : void
return void

GetInfoHash() public method

public GetInfoHash ( ) : byte[]
return byte[]

TorrentBDecoder() public method

public TorrentBDecoder ( Stream stream, Encoding encoding ) : System
stream Stream
encoding System.Text.Encoding
return System