C# Class ServiceStack.Redis.Support.OptimizedObjectSerializer

Optimized ISerializer implementation. Primitive types are manually serialized, the rest are serialized using binary serializer />.
Inheritance: ObjectSerializer
Mostra file Open project: ServiceStack/ServiceStack.Redis Class Usage Examples

Public Methods

Method Description
Deserialize ( byte someBytes ) : object

Serialize ( object value ) : byte[]

Private Methods

Method Description
SerializeToWrapper ( object value ) : SerializedObjectWrapper

serialize value and wrap with SerializedObjectWrapper

Unwrap ( SerializedObjectWrapper item ) : object

Unwrap object wrapped in SerializedObjectWrapper

Method Details

Deserialize() public method

public Deserialize ( byte someBytes ) : object
someBytes byte
return object

Serialize() public method

public Serialize ( object value ) : byte[]
value object
return byte[]