C# 클래스 Google.Protobuf.WireFormat

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.

파일 보기 프로젝트 열기: mirror/chromium 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

GetTagFieldNumber() 공개 정적인 메소드

Given a tag value, determines the field number (the upper 29 bits).
public static GetTagFieldNumber ( uint tag ) : int
tag uint
리턴 int

GetTagWireType() 공개 정적인 메소드

Given a tag value, determines the wire type (lower 3 bits).
public static GetTagWireType ( uint tag ) : WireType
tag uint
리턴 WireType

MakeTag() 공개 정적인 메소드

Makes a tag value given a field number and wire type.
public static MakeTag ( int fieldNumber, WireType wireType ) : uint
fieldNumber int
wireType WireType
리턴 uint