mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-13 15:21:47 +01:00
22 lines
810 B
C#
22 lines
810 B
C#
|
namespace Capnp
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// This interface is intended to be implemented by schema-generated domain classes which support deserialization from
|
|||
|
/// a <see cref="DeserializerState"/> and serialization to a <see cref="SerializerState"/>.
|
|||
|
/// </summary>
|
|||
|
public interface ICapnpSerializable
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Serializes the implementation's current state to a serializer state.
|
|||
|
/// </summary>
|
|||
|
/// <param name="state">Target serializer state</param>
|
|||
|
void Serialize(SerializerState state);
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Deserializes the implementation's state from a deserializer state.
|
|||
|
/// </summary>
|
|||
|
/// <param name="state">Source deserializer state</param>
|
|||
|
void Deserialize(DeserializerState state);
|
|||
|
}
|
|||
|
}
|