Google. Protobuf. IMessage
Interface for a Protocol Buffers message, supporting basic operations required for serialization.
Summary
Inheritance
Direct Known Subclasses:Google.Protobuf.ICustomDiagnosticMessage, Google.Protobuf.IMessage< T >
Properties |
|
---|---|
Descriptor
|
Descriptor for this message.
|
Public functions |
|
---|---|
CalculateSize()
|
int
Calculates the size of this message in Protocol Buffer wire format, in bytes.
|
MergeFrom(CodedInputStream input)
|
void
Merges the data from the specified coded input stream with the current message.
|
WriteTo(CodedOutputStream output)
|
void
Writes the data to the given coded output stream.
|
Properties
Descriptor
MessageDescriptor Descriptor
Descriptor for this message.
All instances are expected to return the same descriptor, and for generated types this will be an explicitly-implemented member, returning the same value as the static property declared on the type.
Public functions
CalculateSize
int CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
Details | |
---|---|
Returns |
The number of bytes required to write this message to a coded output stream.
|
MergeFrom
void MergeFrom( CodedInputStream input )
Merges the data from the specified coded input stream with the current message.
See the user guide for precise merge semantics.
Details | |||
---|---|---|---|
Parameters |
|
WriteTo
void WriteTo( CodedOutputStream output )
Writes the data to the given coded output stream.
Details | |||
---|---|---|---|
Parameters |
|