IProtonizer
Description
- Derived from
- Extended by
-
ISerializer
Protonizer sealed
Base interface for classes that read and write data during conversion of IProtonizable objects to binary Protocol Buffers wire format streams.
Public / Methods
ReadRecord
Reads the tag of a record in a Protocol Buffers wire format stream.
- IOException
-
If an I/O error has occurred.
- See also
WriteBegin
Returns a IProtonizer object that can be used to write records in a Protocol Buffers wire format stream to a separate buffer, until WriteEnd is called.
- IOException
-
If an I/O error has occurred.
WriteEnd
Fetches the content of the separate buffer that has been set up by the last call to WriteBegin and writes it to the wire format stream.
Calls to WriteBegin and WriteEnd must be balanced and may be nested.
- IOException
-
If an I/O error has occurred.
WriteRecord
Writes the tag of a record in a Protocol Buffers wire format stream.
- IOException
-
If an I/O error has occurred.
- See also
Public / Attributes
Position
Returns the byte position of the stream.
The returned value gives the number of bytes that have been written to the stream (after encoding) or the number of bytes that have been read from the stream (before decoding).
- IOException
-
If an I/O error has occurred.