C# 클래스 DBreeze.Utils.Biser

Custom binary serializer of well known types
파일 보기 프로젝트 열기: hhblaze/DBreeze 1 사용 예제들

공개 메소드들

메소드 설명
Decode_DICT_PROTO_STRING_BYTEARRAYHASHSET ( this encB, IDictionary retD, Compression compression = Compression.eCompressionMethod.NoCompression ) : void

Decodes byte[] into Dictionary [string, List[byte[]]]

Decode_DICT_PROTO_STRING_UINTHASHSET ( this encB, IDictionary retD, Compression compression = Compression.eCompressionMethod.NoCompression ) : void

Decodes byte[] into Dictionary [string, HashSet[uint]]

Decode_DICT_PROTO_UINT_BYTEARRAY ( this encB, byte[]>.IDictionary retD, Compression compression = Compression.eCompressionMethod.NoCompression ) : void

Used when parameter is encoded with Encode_DICT_PROTO_UINT_BYTEARRAY. Returns Dictionary [uint, byte[]]

Encode_DICT_PROTO_STRING_BYTEARRAYHASHSET ( this d, Compression compression = Compression.eCompressionMethod.NoCompression ) : byte[]

Proto encoding of Dictionary [string, List[byte[]]]. Hashset can be null, after decoding istantiated, zero-length hashset will be returned in this case.

Encode_DICT_PROTO_STRING_UINTHASHSET ( this d, Compression compression = Compression.eCompressionMethod.NoCompression ) : byte[]

Proto encoding of Dictionary [string, HashSet[uint]]. Hashset can be null, after decoding istantiated, zero-length hashset will be returned in this case.

Encode_DICT_PROTO_UINT_BYTEARRAY ( byte[]>.this d, Compression compression = Compression.eCompressionMethod.NoCompression ) : byte[]

Proto encoding of Dictionary [uint, byte[]]. Use when key is less then 4 bytes (less then 268mln). Value byte[0] will be presented as null after decoding

GetVarintBytes ( uint value ) : byte[]

Uses protobuf concepts

GetVarintBytes ( ulong value ) : byte[]

Uses protobuf concepts

ToUInt32 ( byte bytes ) : uint

Uses protobuf concepts

비공개 메소드들

메소드 설명
ToTarget ( byte bytes, int sizeBites ) : ulong

ToTarget

메소드 상세

Decode_DICT_PROTO_STRING_BYTEARRAYHASHSET() 공개 정적인 메소드

Decodes byte[] into Dictionary [string, List[byte[]]]
public static Decode_DICT_PROTO_STRING_BYTEARRAYHASHSET ( this encB, IDictionary retD, Compression compression = Compression.eCompressionMethod.NoCompression ) : void
encB this
retD IDictionary
compression Compression
리턴 void

Decode_DICT_PROTO_STRING_UINTHASHSET() 공개 정적인 메소드

Decodes byte[] into Dictionary [string, HashSet[uint]]
public static Decode_DICT_PROTO_STRING_UINTHASHSET ( this encB, IDictionary retD, Compression compression = Compression.eCompressionMethod.NoCompression ) : void
encB this
retD IDictionary
compression Compression
리턴 void

Decode_DICT_PROTO_UINT_BYTEARRAY() 공개 정적인 메소드

Used when parameter is encoded with Encode_DICT_PROTO_UINT_BYTEARRAY. Returns Dictionary [uint, byte[]]
public static Decode_DICT_PROTO_UINT_BYTEARRAY ( this encB, byte[]>.IDictionary retD, Compression compression = Compression.eCompressionMethod.NoCompression ) : void
encB this
retD byte[]>.IDictionary Instantiated Dictionary must be supplied and will be returned filled
compression Compression compression method supplied by Encode_DICT_PROTO_UINT_BYTEARRAY
리턴 void

Encode_DICT_PROTO_STRING_BYTEARRAYHASHSET() 공개 정적인 메소드

Proto encoding of Dictionary [string, List[byte[]]]. Hashset can be null, after decoding istantiated, zero-length hashset will be returned in this case.
public static Encode_DICT_PROTO_STRING_BYTEARRAYHASHSET ( this d, Compression compression = Compression.eCompressionMethod.NoCompression ) : byte[]
d this
compression Compression
리턴 byte[]

Encode_DICT_PROTO_STRING_UINTHASHSET() 공개 정적인 메소드

Proto encoding of Dictionary [string, HashSet[uint]]. Hashset can be null, after decoding istantiated, zero-length hashset will be returned in this case.
public static Encode_DICT_PROTO_STRING_UINTHASHSET ( this d, Compression compression = Compression.eCompressionMethod.NoCompression ) : byte[]
d this
compression Compression
리턴 byte[]

Encode_DICT_PROTO_UINT_BYTEARRAY() 공개 정적인 메소드

Proto encoding of Dictionary [uint, byte[]]. Use when key is less then 4 bytes (less then 268mln). Value byte[0] will be presented as null after decoding
public static Encode_DICT_PROTO_UINT_BYTEARRAY ( byte[]>.this d, Compression compression = Compression.eCompressionMethod.NoCompression ) : byte[]
d byte[]>.this
compression Compression compression method extra applied to the outgoing byte array
리턴 byte[]

GetVarintBytes() 공개 정적인 메소드

Uses protobuf concepts
public static GetVarintBytes ( uint value ) : byte[]
value uint
리턴 byte[]

GetVarintBytes() 공개 정적인 메소드

Uses protobuf concepts
public static GetVarintBytes ( ulong value ) : byte[]
value ulong
리턴 byte[]

ToUInt32() 공개 정적인 메소드

Uses protobuf concepts
public static ToUInt32 ( byte bytes ) : uint
bytes byte
리턴 uint