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 |
|---|---|
| public static final boolean[] | |
| public static final byte[] | |
| public static final byte[][] | |
| public static final double[] | |
| public static final float[] | |
| public static final int[] | |
| public static final long[] | |
| public static final String[] | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static final int | Returns: length of arraystream input, pointing to the byte after the first tag input, final int repeated field tag just read tag)Computes the array length of a repeated field. |
| public static int | |
| pack-priv static int | |
| pack-priv static int | makeTag(final int fieldNumber, final int wireType)
Makes a tag value given a field number and wire type. |
| public static boolean | Returns: true unless the tag is an end-group tag.Parses an unknown field. |
| EMPTY_BOOLEAN_ARRAY | back to summary |
|---|---|
| public static final boolean[] EMPTY_BOOLEAN_ARRAY | |
| EMPTY_BYTES | back to summary |
|---|---|
| public static final byte[] EMPTY_BYTES | |
| EMPTY_BYTES_ARRAY | back to summary |
|---|---|
| public static final byte[][] EMPTY_BYTES_ARRAY | |
| EMPTY_DOUBLE_ARRAY | back to summary |
|---|---|
| public static final double[] EMPTY_DOUBLE_ARRAY | |
| EMPTY_FLOAT_ARRAY | back to summary |
|---|---|
| public static final float[] EMPTY_FLOAT_ARRAY | |
| EMPTY_INT_ARRAY | back to summary |
|---|---|
| public static final int[] EMPTY_INT_ARRAY | |
| EMPTY_LONG_ARRAY | back to summary |
|---|---|
| public static final long[] EMPTY_LONG_ARRAY | |
| EMPTY_STRING_ARRAY | back to summary |
|---|---|
| public static final String[] EMPTY_STRING_ARRAY | |
| TAG_TYPE_BITS | back to summary |
|---|---|
| pack-priv static final int TAG_TYPE_BITS | |
| TAG_TYPE_MASK | back to summary |
|---|---|
| pack-priv static final int TAG_TYPE_MASK | |
| WIRETYPE_END_GROUP | back to summary |
|---|---|
| pack-priv static final int WIRETYPE_END_GROUP | |
| WIRETYPE_FIXED32 | back to summary |
|---|---|
| pack-priv static final int WIRETYPE_FIXED32 | |
| WIRETYPE_FIXED64 | back to summary |
|---|---|
| pack-priv static final int WIRETYPE_FIXED64 | |
| WIRETYPE_LENGTH_DELIMITED | back to summary |
|---|---|
| pack-priv static final int WIRETYPE_LENGTH_DELIMITED | |
| WIRETYPE_START_GROUP | back to summary |
|---|---|
| pack-priv static final int WIRETYPE_START_GROUP | |
| WIRETYPE_VARINT | back to summary |
|---|---|
| pack-priv static final int WIRETYPE_VARINT | |
| WireFormatNano | back to summary |
|---|---|
| private WireFormatNano() | |
| getRepeatedFieldArrayLength | back to summary |
|---|---|
| public static final int getRepeatedFieldArrayLength(final CodedInputByteBufferNano input, final int tag) throws IOException Computes the array length of a repeated field. We assume that in the common case repeated fields are contiguously serialized but we still correctly handle interspersed values of a repeated field (but with extra allocations). Rewinds to current input position before returning.
| |
| getTagFieldNumber | back to summary |
|---|---|
| public static int getTagFieldNumber(final int tag) Given a tag value, determines the field number (the upper 29 bits). | |
| getTagWireType | back to summary |
|---|---|
| pack-priv static int getTagWireType(final int tag) Given a tag value, determines the wire type (the lower 3 bits). | |
| makeTag | back to summary |
|---|---|
| pack-priv static int makeTag(final int fieldNumber, final int wireType) Makes a tag value given a field number and wire type. | |
| parseUnknownField | back to summary |
|---|---|
| public static boolean parseUnknownField(final CodedInputByteBufferNano input, final int tag) throws IOException Parses an unknown field. This implementation skips the field. Generated messages will call this for unknown fields if the store_unknown_fields option is off.
| |