ObjectSerializer
serialize/deserialize arbitrary objects (objects must be serializable)
Assembly: ServiceStack.Redis.dll
View Source
Declaration
public class ObjectSerializer : ISerializer
Fields
bf
View Source
Declaration
protected readonly BinaryFormatter bf
Methods
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 |
|
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 |
|