public final class WireFormatNano extends 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 String[] |
EMPTY_STRING_ARRAY |
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).
|
static boolean |
parseUnknownField(CodedInputByteBufferNano input,
int tag)
Parses an unknown field.
|
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 String[] EMPTY_STRING_ARRAY
public static final byte[][] EMPTY_BYTES_ARRAY
public static final byte[] EMPTY_BYTES
public static int getTagFieldNumber(int tag)
public static boolean parseUnknownField(CodedInputByteBufferNano input, int tag) throws IOException
Generated messages will call this for unknown fields if the store_unknown_fields option is off.
IOException
public static final int getRepeatedFieldArrayLength(CodedInputByteBufferNano input, int tag) throws IOException
input
- stream input, pointing to the byte after the first tagtag
- repeated field tag just readIOException
Copyright © 2008–2018. All rights reserved.