Class WireFormat (3.15.8)

 public static class WireFormat : object 

This class is used internally by the Protocol Buffer Library and generated message implementations. It is public only for the sake of those generated messages. Others should not use this class directly.

This class contains constants and helper functions useful for dealing with the Protocol Buffer wire format.

Inheritance

Object > WireFormat

Namespace

Google.Protobuf

Assembly

Google.Protobuf.dll

Methods

GetTagFieldNumber(UInt32)

 public static int GetTagFieldNumber(uint tag) 

Given a tag value, determines the field number (the upper 29 bits).

Parameter
Name
Description
tag
Returns
Type
Description

GetTagWireType(UInt32)

 public static WireFormat.WireType GetTagWireType(uint tag) 

Given a tag value, determines the wire type (lower 3 bits).

Parameter
Name
Description
tag
Returns
Type
Description

MakeTag(Int32, WireFormat.WireType)

  public 
  
 static 
  
 uint 
  
 MakeTag 
 ( 
 int 
  
 fieldNumber 
 , 
  
 WireFormat 
 . 
 WireType 
  
 wireType 
 ) 
 

Makes a tag value given a field number and wire type.

Parameters
Name
Description
fieldNumber
Returns
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: