Class EnumPofSerializer
IPofSerializer implementation that supports the serialization and deserialization of enum values to and from a POF stream.
Implements
Inherited Members
Namespace: Tangosol.IO.Pof
Assembly: Coherence.dll
Syntax
public class EnumPofSerializer : IPofSerializer
Methods
Deserialize(IPofReader)
Deserialize an enum instance from a POF stream by reading its value using the specified IPofReader object.
Declaration
public object Deserialize(IPofReader reader)
Parameters
Type | Name | Description |
---|---|---|
IPofReader | reader | The IPofReader with which to read the object's state. |
Returns
Type | Description |
---|---|
object | The deserialized enum instance. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |
Serialize(IPofWriter, object)
Serialize an enum instance to a POF stream by writing its value using the specified IPofWriter object.
Declaration
public void Serialize(IPofWriter writer, object o)
Parameters
Type | Name | Description |
---|---|---|
IPofWriter | writer | The IPofWriter with which to write the object's state. |
object | o | The object to serialize. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |