mirror of
https://github.com/FabInfra/capnproto-dotnetcore_Runtime.git
synced 2025-03-12 23:01:44 +01:00
21 lines
809 B
C#
21 lines
809 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);
|
|
}
|
|
} |