Interface IMessage (3.27.1)

 public interface IMessage 

Interface for a Protocol Buffers message, supporting basic operations required for serialization.

Namespace

Google.Protobuf

Assembly

Google.Protobuf.dll

Properties

Descriptor

 MessageDescriptor Descriptor { get; } 

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.

Property Value
Type
Description

Methods

CalculateSize()

 int CalculateSize() 

Calculates the size of this message in Protocol Buffer wire format, in bytes.

Returns
Type
Description
int

The number of bytes required to write this message to a coded output stream.

MergeFrom(CodedInputStream)

 void MergeFrom(CodedInputStream input) 

Merges the data from the specified coded input stream with the current message.

Parameter
Name
Description
Remarks

See the user guide for precise merge semantics.

WriteTo(CodedOutputStream)

 void WriteTo(CodedOutputStream output) 

Writes the data to the given coded output stream.

Parameter
Name
Description
output
CodedOutputStream

Coded output stream to write the data to. Must not be null.

Extension Methods

Create a Mobile Website
View Site in Mobile | Classic
Share by: