Skip to main content

OptimizedObjectSerializer

Optimized ServiceStack.Redis.Support.ISerializer implementation. Primitive types are manually serialized, the rest are serialized using binary serializer />.

Assembly: ServiceStack.Redis.dll
View Source
Declaration
public class OptimizedObjectSerializer : ObjectSerializer, ISerializer

Methods

Serialize(Object)

View Source
Declaration
public override byte[] Serialize(object value)
Returns

System.Byte[]

Parameters
TypeName
System.Objectvalue

Deserialize(Byte[])

View Source
Declaration
public override object Deserialize(byte[] someBytes)
Returns

System.Object

Parameters
TypeName
System.Byte[]someBytes

Inherited Methods

Deserialize(Byte[])

Deserialize buffer to object

View Source
Declaration
public virtual object Deserialize(byte[] someBytes)
Returns

System.Object

Parameters
TypeNameDescription
System.Byte[]someBytesbyte array to deserialize

|

Serialize(Object)

Serialize object to buffer

View Source
Declaration
public virtual byte[] Serialize(object value)
Returns

System.Byte[]

Parameters
TypeNameDescription
System.Objectvalueserializable object

|

Implements