IProtonizable

Description

interface Tinman.Core.IO.Serialization.IProtonizable

Extended by

Protonizable abstract

Base interface for classes that can serialize their state to the Protocol Buffers wire format.

Public / Methods

Proto­Default


public method ProtoDefault → ()

returns → IProtonizable

this

Resets the object state to default values.

Proto­Deserialize


public method ProtoDeserialize → (2)

wire in : IProtonizer

[not-null]
The input stream.

limit opt : int64 = Maths.MaxLong

The read limit to impose for the duration of the method call, see IProtonizer.Limit. If negative, the read limit will be IBytePosition.Position plus the absolute value of limit opt. Otherwise, it will be clamped to IProtonizer.Limit.

Restores the object state from the given Protocol Buffers wire format stream.

IOException

If an I/O error has occurred.

Proto­Serialize


public method ProtoSerialize → (1)

wire in : IProtonizer

[not-null]
The output stream.

Serializes the object state to a Protocol Buffers wire format stream.

IOException

If an I/O error has occurred.