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
Type | Name |
---|---|
System.Object | value |
Deserialize(Byte[])
View Source
Declaration
public override object Deserialize(byte[] someBytes)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Byte[] | someBytes |
Inherited Methods
Deserialize(Byte[])
Deserialize buffer to object
View Source
Declaration
public virtual object Deserialize(byte[] someBytes)
Returns
System.Object
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | someBytes | byte array to deserialize |
|
Serialize(Object)
Serialize object to buffer
View Source
Declaration
public virtual byte[] Serialize(object value)
Returns
System.Byte[]
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | serializable object |
|