public final class WireFormatNano
extends java.lang.Object
protobuf
package. Others should not use this
class directly.
This class contains constants and helper functions useful for dealing with
the Protocol Buffer wire format.Modifier and Type | Field and Description |
---|---|
static boolean[] |
EMPTY_BOOLEAN_ARRAY |
static byte[] |
EMPTY_BYTES |
static byte[][] |
EMPTY_BYTES_ARRAY |
static double[] |
EMPTY_DOUBLE_ARRAY |
static float[] |
EMPTY_FLOAT_ARRAY |
static int[] |
EMPTY_INT_ARRAY |
static long[] |
EMPTY_LONG_ARRAY |
static java.lang.String[] |
EMPTY_STRING_ARRAY |
(package private) static int |
TAG_TYPE_BITS |
(package private) static int |
TAG_TYPE_MASK |
(package private) static int |
WIRETYPE_END_GROUP |
(package private) static int |
WIRETYPE_FIXED32 |
(package private) static int |
WIRETYPE_FIXED64 |
(package private) static int |
WIRETYPE_LENGTH_DELIMITED |
(package private) static int |
WIRETYPE_START_GROUP |
(package private) static int |
WIRETYPE_VARINT |
Modifier | Constructor and Description |
---|---|
private |
WireFormatNano() |
Modifier and Type | Method and Description |
---|---|
static int |
getRepeatedFieldArrayLength(CodedInputByteBufferNano input,
int tag)
Computes the array length of a repeated field.
|
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.
|
static boolean |
parseUnknownField(CodedInputByteBufferNano input,
int tag)
Parses an unknown field.
|
static final int WIRETYPE_VARINT
static final int WIRETYPE_FIXED64
static final int WIRETYPE_LENGTH_DELIMITED
static final int WIRETYPE_START_GROUP
static final int WIRETYPE_END_GROUP
static final int WIRETYPE_FIXED32
static final int TAG_TYPE_BITS
static final int TAG_TYPE_MASK
public static final int[] EMPTY_INT_ARRAY
public static final long[] EMPTY_LONG_ARRAY
public static final float[] EMPTY_FLOAT_ARRAY
public static final double[] EMPTY_DOUBLE_ARRAY
public static final boolean[] EMPTY_BOOLEAN_ARRAY
public static final java.lang.String[] EMPTY_STRING_ARRAY
public static final byte[][] EMPTY_BYTES_ARRAY
public static final byte[] EMPTY_BYTES
static int getTagWireType(int tag)
public static int getTagFieldNumber(int tag)
static int makeTag(int fieldNumber, int wireType)
public static boolean parseUnknownField(CodedInputByteBufferNano input, int tag) throws java.io.IOException
Generated messages will call this for unknown fields if the store_unknown_fields option is off.
java.io.IOException
public static final int getRepeatedFieldArrayLength(CodedInputByteBufferNano input, int tag) throws java.io.IOException
input
- stream input, pointing to the byte after the first tagtag
- repeated field tag just readjava.io.IOException