Method | Description | |
---|---|---|
GetTagFieldNumber ( uint tag ) : int |
Given a tag value, determines the field number (the upper 29 bits).
|
|
GetTagWireType ( uint tag ) : WireType |
Given a tag value, determines the wire type (lower 3 bits).
|
|
MakeTag ( int fieldNumber, WireType wireType ) : uint |
Makes a tag value given a field number and wire type.
|
public static GetTagFieldNumber ( uint tag ) : int | ||
tag | uint | |
return | int |
public static GetTagWireType ( uint tag ) : WireType | ||
tag | uint | |
return | WireType |
public static MakeTag ( int fieldNumber, WireType wireType ) : uint | ||
fieldNumber | int | |
wireType | WireType | |
return | uint |