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.
파일 보기 프로젝트 열기: peteroupc/CBOR

공개 메소드들

메소드 설명
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