Interface ISerializer
Provides the capability of reading and writing a .NET object from and to an in-memory buffer.
Namespace: Tangosol.IO
Assembly: Coherence.dll
Syntax
public interface ISerializer
Methods
Deserialize(DataReader)
Deserialize an object from a stream by reading its state using the specified DataReader object.
Declaration
object Deserialize(DataReader reader)
Parameters
Type | Name | Description |
---|---|---|
DataReader | reader | The DataReader with which to read the object's state. |
Returns
Type | Description |
---|---|
object | The deserialized user type instance. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |
Serialize(DataWriter, object)
Serialize an object to a stream by writing its state using the specified DataWriter object.
Declaration
void Serialize(DataWriter writer, object o)
Parameters
Type | Name | Description |
---|---|---|
DataWriter | writer | The DataWriter with which to write the object's state. |
object | o | The object to serialize. |
Exceptions
Type | Condition |
---|---|
IOException | If an I/O error occurs. |