C# Класс PeterO.BEncoding

Contains methods for reading and writing objects represented in BEncode, a serialization format used in the BitTorrent protocol. For more information, see: http://wiki.theory.org/BitTorrentSpecification This class accepts BEncoded strings in UTF-8, and outputs BEncoded strings in UTF-8. This class also demonstrates how CBORObject supports predefined serialization formats.
Показать файл Открыть проект

Открытые методы

Метод Описание
LongToString ( long longValue ) : string
Read ( Stream stream ) : CBORObject
Write ( CBORObject obj, Stream stream ) : void

Приватные методы

Метод Описание
ReverseChars ( char chars, int offset, int length ) : void
readDictionary ( Stream stream ) : CBORObject
readInteger ( Stream stream ) : CBORObject
readList ( Stream stream ) : CBORObject
readObject ( Stream stream, bool allowEnd ) : CBORObject
readString ( Stream stream, char firstChar ) : CBORObject
writeUtf8 ( string s, Stream stream ) : void

Описание методов

LongToString() публичный статический Метод

public static LongToString ( long longValue ) : string
longValue long
Результат string

Read() публичный статический Метод

public static Read ( Stream stream ) : CBORObject
stream Stream
Результат CBORObject

Write() публичный статический Метод

public static Write ( CBORObject obj, Stream stream ) : void
obj CBORObject
stream Stream
Результат void