C# Class MemcachedClientLibrary.Serializer

Mostra file Open project: noear/Weed3

Public Methods

Method Description
DeSerialize ( byte bytes, SerializedType type ) : object
Serialize ( object value, SerializedType &type, uint compressionThreshold ) : byte[]

Private Methods

Method Description
compress ( byte bytes ) : byte[]
decompress ( byte bytes ) : byte[]

Method Details

DeSerialize() public static method

public static DeSerialize ( byte bytes, SerializedType type ) : object
bytes byte
type SerializedType
return object

Serialize() public static method

public static Serialize ( object value, SerializedType &type, uint compressionThreshold ) : byte[]
value object
type SerializedType
compressionThreshold uint
return byte[]