Class WireFormat
- java.lang.Object
-
- io.opentelemetry.exporter.internal.marshal.WireFormat
-
final class WireFormat extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static int
FIXED32_SIZE
(package private) static int
FIXED64_SIZE
(package private) static int
MAX_VARINT_SIZE
(package private) static int
MAX_VARINT32_SIZE
(package private) static int
MAX_VARINT64_SIZE
(package private) static int
TAG_TYPE_BITS
(package private) static int
TAG_TYPE_MASK
(package private) static int
WIRETYPE_FIXED32
(package private) static int
WIRETYPE_FIXED64
(package private) static int
WIRETYPE_LENGTH_DELIMITED
(package private) static int
WIRETYPE_VARINT
-
Constructor Summary
Constructors Modifier Constructor Description private
WireFormat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (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 Detail
-
FIXED32_SIZE
static final int FIXED32_SIZE
- See Also:
- Constant Field Values
-
FIXED64_SIZE
static final int FIXED64_SIZE
- See Also:
- Constant Field Values
-
MAX_VARINT32_SIZE
static final int MAX_VARINT32_SIZE
- See Also:
- Constant Field Values
-
MAX_VARINT64_SIZE
static final int MAX_VARINT64_SIZE
- See Also:
- Constant Field Values
-
MAX_VARINT_SIZE
static final int MAX_VARINT_SIZE
- See Also:
- Constant Field Values
-
WIRETYPE_VARINT
static final int WIRETYPE_VARINT
- See Also:
- Constant Field Values
-
WIRETYPE_FIXED64
static final int WIRETYPE_FIXED64
- See Also:
- Constant Field Values
-
WIRETYPE_LENGTH_DELIMITED
static final int WIRETYPE_LENGTH_DELIMITED
- See Also:
- Constant Field Values
-
WIRETYPE_FIXED32
static final int WIRETYPE_FIXED32
- See Also:
- Constant Field Values
-
TAG_TYPE_BITS
static final int TAG_TYPE_BITS
- See Also:
- Constant Field Values
-
TAG_TYPE_MASK
static final int TAG_TYPE_MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
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).
-
-