webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Static Public Member Functions | Static Public Attributes | List of all members
com.google.protobuf.nano.WireFormatNano Class Reference

Static Public Member Functions

static int getTagFieldNumber (final int tag)
 
static boolean parseUnknownField (final CodedInputByteBufferNano input, final int tag) throws IOException
 
static final int getRepeatedFieldArrayLength (final CodedInputByteBufferNano input, final int tag) throws IOException
 

Static Public Attributes

static final int EMPTY_INT_ARRAY [] = {}
 
static final long EMPTY_LONG_ARRAY [] = {}
 
static final float EMPTY_FLOAT_ARRAY [] = {}
 
static final double EMPTY_DOUBLE_ARRAY [] = {}
 
static final boolean EMPTY_BOOLEAN_ARRAY [] = {}
 
static final String EMPTY_STRING_ARRAY [] = {}
 
static final byte [] EMPTY_BYTES_ARRAY [] = {}
 
static final byte [] EMPTY_BYTES = {}
 

Detailed Description

This class is used internally by the Protocol Buffer library and generated message implementations. It is public only because those generated messages do not reside in the

package. Others should not use this class directly.

This class contains constants and helper functions useful for dealing with the Protocol Buffer wire format.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com Kenton Varda

Member Function Documentation

◆ getRepeatedFieldArrayLength()

static final int com.google.protobuf.nano.WireFormatNano.getRepeatedFieldArrayLength ( final CodedInputByteBufferNano  input,
final int  tag 
) throws IOException
inlinestatic

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.

Parameters
inputstream input, pointing to the byte after the first tag
tagrepeated field tag just read
Returns
length of array
Exceptions
IOException

◆ getTagFieldNumber()

static int com.google.protobuf.nano.WireFormatNano.getTagFieldNumber ( final int  tag)
inlinestatic

Given a tag value, determines the field number (the upper 29 bits).

◆ parseUnknownField()

static boolean com.google.protobuf.nano.WireFormatNano.parseUnknownField ( final CodedInputByteBufferNano  input,
final int  tag 
) throws IOException
inlinestatic

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.

Returns
{ true} unless the tag is an end-group tag.

Member Data Documentation

◆ EMPTY_BOOLEAN_ARRAY

final boolean com.google.protobuf.nano.WireFormatNano.EMPTY_BOOLEAN_ARRAY[] = {}
static

◆ EMPTY_BYTES

final byte [] com.google.protobuf.nano.WireFormatNano.EMPTY_BYTES = {}
static

◆ EMPTY_BYTES_ARRAY

final byte [] com.google.protobuf.nano.WireFormatNano.EMPTY_BYTES_ARRAY[] = {}
static

◆ EMPTY_DOUBLE_ARRAY

final double com.google.protobuf.nano.WireFormatNano.EMPTY_DOUBLE_ARRAY[] = {}
static

◆ EMPTY_FLOAT_ARRAY

final float com.google.protobuf.nano.WireFormatNano.EMPTY_FLOAT_ARRAY[] = {}
static

◆ EMPTY_INT_ARRAY

final int com.google.protobuf.nano.WireFormatNano.EMPTY_INT_ARRAY[] = {}
static

◆ EMPTY_LONG_ARRAY

final long com.google.protobuf.nano.WireFormatNano.EMPTY_LONG_ARRAY[] = {}
static

◆ EMPTY_STRING_ARRAY

final String com.google.protobuf.nano.WireFormatNano.EMPTY_STRING_ARRAY[] = {}
static

The documentation for this class was generated from the following file: