Class WireFormat
java.lang.Object
io.opentelemetry.exporter.internal.marshal.WireFormat
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static int
getTagFieldNumber
(int tag) Given a tag value, determines the field number (the upper 29 bits).(package private) static int
getTagWireType
(int tag) Given a tag value, determines the wire type (the lower 3 bits).(package private) static int
makeTag
(int fieldNumber, int wireType) Makes a tag value given a field number and wire type.
-
Field Details
-
FIXED32_SIZE
static final int FIXED32_SIZE- See Also:
-
FIXED64_SIZE
static final int FIXED64_SIZE- See Also:
-
MAX_VARINT32_SIZE
static final int MAX_VARINT32_SIZE- See Also:
-
MAX_VARINT64_SIZE
static final int MAX_VARINT64_SIZE- See Also:
-
MAX_VARINT_SIZE
static final int MAX_VARINT_SIZE- See Also:
-
WIRETYPE_VARINT
static final int WIRETYPE_VARINT- See Also:
-
WIRETYPE_FIXED64
static final int WIRETYPE_FIXED64- See Also:
-
WIRETYPE_LENGTH_DELIMITED
static final int WIRETYPE_LENGTH_DELIMITED- See Also:
-
WIRETYPE_FIXED32
static final int WIRETYPE_FIXED32- See Also:
-
TAG_TYPE_BITS
static final int TAG_TYPE_BITS- See Also:
-
TAG_TYPE_MASK
static final int TAG_TYPE_MASK- See Also:
-
-
Constructor Details
-
WireFormat
private WireFormat()
-
-
Method Details
-
makeTag
static int makeTag(int fieldNumber, int wireType) Makes a tag value given a field number and wire type. -
getTagWireType
static int getTagWireType(int tag) Given a tag value, determines the wire type (the lower 3 bits). -
getTagFieldNumber
static int getTagFieldNumber(int tag) Given a tag value, determines the field number (the upper 29 bits).
-