Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
com.google.protobuf.CodedInputStream.StreamDecoder Class Reference
Inheritance diagram for com.google.protobuf.CodedInputStream.StreamDecoder:
Inheritance graph
[legend]

Classes

interface  RefillCallback
 
class  SkippedDataSink
 

Public Member Functions

void checkLastTagWas (final int value) throws InvalidProtocolBufferException
 
void checkLastTagWas (final int value) throws InvalidProtocolBufferException
 
void enableAliasing (boolean enabled)
 
void enableAliasing (boolean enabled)
 
int getBytesUntilLimit ()
 
int getBytesUntilLimit ()
 
int getLastTag ()
 
int getLastTag ()
 
int getTotalBytesRead ()
 
int getTotalBytesRead ()
 
boolean isAtEnd () throws IOException
 
boolean isAtEnd () throws IOException
 
void popLimit (final int oldLimit)
 
void popLimit (final int oldLimit)
 
int pushLimit (int byteLimit) throws InvalidProtocolBufferException
 
int pushLimit (int byteLimit) throws InvalidProtocolBufferException
 
boolean readBool () throws IOException
 
boolean readBool () throws IOException
 
byte[] readByteArray () throws IOException
 
byte[] readByteArray () throws IOException
 
ByteBuffer readByteBuffer () throws IOException
 
ByteBuffer readByteBuffer () throws IOException
 
ByteString readBytes () throws IOException
 
ByteString readBytes () throws IOException
 
double readDouble () throws IOException
 
double readDouble () throws IOException
 
int readEnum () throws IOException
 
int readEnum () throws IOException
 
int readFixed32 () throws IOException
 
int readFixed32 () throws IOException
 
long readFixed64 () throws IOException
 
long readFixed64 () throws IOException
 
float readFloat () throws IOException
 
float readFloat () throws IOException
 
void readGroup (final int fieldNumber, final MessageLite.Builder builder, final ExtensionRegistryLite extensionRegistry) throws IOException
 
void readGroup (final int fieldNumber, final MessageLite.Builder builder, final ExtensionRegistryLite extensionRegistry) throws IOException
 
int readInt32 () throws IOException
 
int readInt32 () throws IOException
 
long readInt64 () throws IOException
 
long readInt64 () throws IOException
 
void readMessage (final MessageLite.Builder builder, final ExtensionRegistryLite extensionRegistry) throws IOException
 
void readMessage (final MessageLite.Builder builder, final ExtensionRegistryLite extensionRegistry) throws IOException
 
byte readRawByte () throws IOException
 
byte readRawByte () throws IOException
 
byte[] readRawBytes (final int size) throws IOException
 
byte[] readRawBytes (final int size) throws IOException
 
int readRawLittleEndian32 () throws IOException
 
int readRawLittleEndian32 () throws IOException
 
long readRawLittleEndian64 () throws IOException
 
long readRawLittleEndian64 () throws IOException
 
int readRawVarint32 () throws IOException
 
int readRawVarint32 () throws IOException
 
long readRawVarint64 () throws IOException
 
long readRawVarint64 () throws IOException
 
int readSFixed32 () throws IOException
 
int readSFixed32 () throws IOException
 
long readSFixed64 () throws IOException
 
long readSFixed64 () throws IOException
 
int readSInt32 () throws IOException
 
int readSInt32 () throws IOException
 
long readSInt64 () throws IOException
 
long readSInt64 () throws IOException
 
String readString () throws IOException
 
String readString () throws IOException
 
String readStringRequireUtf8 () throws IOException
 
String readStringRequireUtf8 () throws IOException
 
int readTag () throws IOException
 
int readTag () throws IOException
 
int readUInt32 () throws IOException
 
int readUInt32 () throws IOException
 
long readUInt64 () throws IOException
 
long readUInt64 () throws IOException
 
void readUnknownGroup (final int fieldNumber, final MessageLite.Builder builder) throws IOException
 
void readUnknownGroup (final int fieldNumber, final MessageLite.Builder builder) throws IOException
 
void resetSizeCounter ()
 
void resetSizeCounter ()
 
boolean skipField (final int tag) throws IOException
 
boolean skipField (final int tag) throws IOException
 
boolean skipField (final int tag, final CodedOutputStream output) throws IOException
 
boolean skipField (final int tag, final CodedOutputStream output) throws IOException
 
void skipMessage () throws IOException
 
void skipMessage () throws IOException
 
void skipMessage (CodedOutputStream output) throws IOException
 
void skipMessage (CodedOutputStream output) throws IOException
 
void skipRawBytes (final int size) throws IOException
 
void skipRawBytes (final int size) throws IOException
 
- Public Member Functions inherited from com.google.protobuf.CodedInputStream
void checkRecursionLimit () throws InvalidProtocolBufferException
 
final int setRecursionLimit (final int limit)
 
final int setRecursionLimit (final int limit)
 
final int setSizeLimit (final int limit)
 
final int setSizeLimit (final int limit)
 

Private Member Functions

ByteString readBytesSlowPath (final int size) throws IOException
 
ByteString readBytesSlowPath (final int size) throws IOException
 
byte[] readRawBytesSlowPath (final int size, boolean ensureNoLeakedReferences) throws IOException
 
byte[] readRawBytesSlowPath (final int size, boolean ensureNoLeakedReferences) throws IOException
 
byte[] readRawBytesSlowPathOneChunk (final int size) throws IOException
 
byte[] readRawBytesSlowPathOneChunk (final int size) throws IOException
 
List< byte[]> readRawBytesSlowPathRemainingChunks (int sizeLeft) throws IOException
 
List< byte[]> readRawBytesSlowPathRemainingChunks (int sizeLeft) throws IOException
 
void recomputeBufferSizeAfterLimit ()
 
void recomputeBufferSizeAfterLimit ()
 
void refillBuffer (int n) throws IOException
 
void refillBuffer (int n) throws IOException
 
void skipRawBytesSlowPath (final int size) throws IOException
 
void skipRawBytesSlowPath (final int size) throws IOException
 
void skipRawVarint () throws IOException
 
void skipRawVarint () throws IOException
 
void skipRawVarintFastPath () throws IOException
 
void skipRawVarintFastPath () throws IOException
 
void skipRawVarintSlowPath () throws IOException
 
void skipRawVarintSlowPath () throws IOException
 
 StreamDecoder (final InputStream input, int bufferSize)
 
 StreamDecoder (final InputStream input, int bufferSize)
 
boolean tryRefillBuffer (int n) throws IOException
 
boolean tryRefillBuffer (int n) throws IOException
 

Static Private Member Functions

static int available (InputStream input) throws IOException
 
static int read (InputStream input, byte[] data, int offset, int length) throws IOException
 
static long skip (InputStream input, long length) throws IOException
 

Private Attributes

final byte[] buffer
 
int bufferSize
 
int bufferSizeAfterLimit
 
int currentLimit = Integer.MAX_VALUE
 
final InputStream input
 
int lastTag
 
int pos
 
RefillCallback refillCallback = null
 
int totalBytesRetired
 

Additional Inherited Members

- Static Public Member Functions inherited from com.google.protobuf.CodedInputStream
static int decodeZigZag32 (final int n)
 
static int decodeZigZag32 (final int n)
 
static long decodeZigZag64 (final long n)
 
static long decodeZigZag64 (final long n)
 
static CodedInputStream newInstance (ByteBuffer buf)
 
static CodedInputStream newInstance (ByteBuffer buf)
 
static CodedInputStream newInstance (final byte[] buf)
 
static CodedInputStream newInstance (final byte[] buf)
 
static CodedInputStream newInstance (final byte[] buf, final int off, final int len)
 
static CodedInputStream newInstance (final byte[] buf, final int off, final int len)
 
static CodedInputStream newInstance (final InputStream input)
 
static CodedInputStream newInstance (final InputStream input)
 
static CodedInputStream newInstance (final InputStream input, int bufferSize)
 
static CodedInputStream newInstance (final InputStream input, int bufferSize)
 
static CodedInputStream newInstance (final Iterable< ByteBuffer > input)
 
static CodedInputStream newInstance (final Iterable< ByteBuffer > input)
 
static int readRawVarint32 (final int firstByte, final InputStream input) throws IOException
 
static int readRawVarint32 (final int firstByte, final InputStream input) throws IOException
 

Detailed Description

Implementation of CodedInputStream that uses an InputStream as the data source.

Definition at line 2027 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

Constructor & Destructor Documentation

◆ StreamDecoder() [1/2]

com.google.protobuf.CodedInputStream.StreamDecoder.StreamDecoder ( final InputStream  input,
int  bufferSize 
)
inlineprivate

◆ StreamDecoder() [2/2]

com.google.protobuf.CodedInputStream.StreamDecoder.StreamDecoder ( final InputStream  input,
int  bufferSize 
)
inlineprivate

Member Function Documentation

◆ available()

static int com.google.protobuf.CodedInputStream.StreamDecoder.available ( InputStream  input) throws IOException
inlinestaticprivate

◆ checkLastTagWas() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.checkLastTagWas ( final int  value) throws InvalidProtocolBufferException
inline

Verifies that the last call to readTag() returned the given tag value. This is used to verify that a nested group ended with the correct end tag.

Exceptions
InvalidProtocolBufferException

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2074 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ checkLastTagWas() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.checkLastTagWas ( final int  value) throws InvalidProtocolBufferException
inline

Verifies that the last call to readTag() returned the given tag value. This is used to verify that a nested group ended with the correct end tag.

Exceptions
InvalidProtocolBufferException

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2122 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ enableAliasing() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.enableAliasing ( boolean  enabled)
inline

Enables ByteString aliasing of the underlying buffer, trading off on buffer pinning for data copies. Only valid for buffer-backed streams.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2652 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ enableAliasing() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.enableAliasing ( boolean  enabled)
inline

Enables ByteString aliasing of the underlying buffer, trading off on buffer pinning for data copies. Only valid for buffer-backed streams.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2698 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ getBytesUntilLimit() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.getBytesUntilLimit ( )
inline

Returns the number of bytes to be read before the current limit. If no limit is set, returns -1.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2697 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ getBytesUntilLimit() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.getBytesUntilLimit ( )
inline

Returns the number of bytes to be read before the current limit. If no limit is set, returns -1.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2743 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ getLastTag() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.getLastTag ( )
inline

◆ getLastTag() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.getLastTag ( )
inline

◆ getTotalBytesRead() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.getTotalBytesRead ( )
inline

The total bytes read up to the current position. Calling resetSizeCounter() resets this value to zero.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2712 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ getTotalBytesRead() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.getTotalBytesRead ( )
inline

The total bytes read up to the current position. Calling resetSizeCounter() resets this value to zero.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2758 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ isAtEnd() [1/2]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.isAtEnd ( ) throws IOException
inline

Returns true if the stream has reached the end of the input. This is the case if either the end of the underlying input source has been reached or if the stream has reached a limit created using pushLimit(int). This function may get blocked when using StreamDecoder as it invokes StreamDecoder.tryRefillBuffer(int) in this function which will try to read bytes from input.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2707 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ isAtEnd() [2/2]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.isAtEnd ( ) throws IOException
inline

Returns true if the stream has reached the end of the input. This is the case if either the end of the underlying input source has been reached or if the stream has reached a limit created using pushLimit(int). This function may get blocked when using StreamDecoder as it invokes StreamDecoder.tryRefillBuffer(int) in this function which will try to read bytes from input.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2753 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ popLimit() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.popLimit ( final int  oldLimit)
inline

Discards the current limit, returning to the previous limit.

Parameters
oldLimitThe old limit, as returned by .

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2691 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ popLimit() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.popLimit ( final int  oldLimit)
inline

Discards the current limit, returning to the previous limit.

Parameters
oldLimitThe old limit, as returned by .

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2737 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ pushLimit() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.pushLimit ( int  byteLimit) throws InvalidProtocolBufferException
inline

Sets

to (current position) +

byteLimit

. This is called when descending into a length-delimited embedded message.

Note that

does NOT affect how many bytes the

reads from an underlying

InputStream

when refreshing its buffer. If you need to prevent reading past a certain point in the underlying

InputStream

(e.g. because you expect it to contain more data after the end of the message which you need to handle differently) then you must place a wrapper around your

InputStream

which limits the amount of data that can be read from it.

Returns
the old limit.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2662 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ pushLimit() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.pushLimit ( int  byteLimit) throws InvalidProtocolBufferException
inline

Sets

to (current position) +

byteLimit

. This is called when descending into a length-delimited embedded message.

Note that

does NOT affect how many bytes the

reads from an underlying

InputStream

when refreshing its buffer. If you need to prevent reading past a certain point in the underlying

InputStream

(e.g. because you expect it to contain more data after the end of the message which you need to handle differently) then you must place a wrapper around your

InputStream

which limits the amount of data that can be read from it.

Returns
the old limit.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2708 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ read()

static int com.google.protobuf.CodedInputStream.StreamDecoder.read ( InputStream  input,
byte[]  data,
int  offset,
int  length 
) throws IOException
inlinestaticprivate

◆ readBool() [1/2]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.readBool ( ) throws IOException
inline

Read a

bool

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2247 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readBool() [2/2]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.readBool ( ) throws IOException
inline

Read a

bool

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2295 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readByteArray() [1/2]

byte [] com.google.protobuf.CodedInputStream.StreamDecoder.readByteArray ( ) throws IOException
inline

◆ readByteArray() [2/2]

byte [] com.google.protobuf.CodedInputStream.StreamDecoder.readByteArray ( ) throws IOException
inline

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2436 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readByteBuffer() [1/2]

ByteBuffer com.google.protobuf.CodedInputStream.StreamDecoder.readByteBuffer ( ) throws IOException
inline

◆ readByteBuffer() [2/2]

ByteBuffer com.google.protobuf.CodedInputStream.StreamDecoder.readByteBuffer ( ) throws IOException
inline

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2452 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readBytes() [1/2]

ByteString com.google.protobuf.CodedInputStream.StreamDecoder.readBytes ( ) throws IOException
inline

◆ readBytes() [2/2]

ByteString com.google.protobuf.CodedInputStream.StreamDecoder.readBytes ( ) throws IOException
inline

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2420 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readBytesSlowPath() [1/2]

ByteString com.google.protobuf.CodedInputStream.StreamDecoder.readBytesSlowPath ( final int  size) throws IOException
inlineprivate

Like readBytes, but caller must have already checked the fast path: (size <= (bufferSize - pos) && size > 0 || size == 0)

Definition at line 2973 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readBytesSlowPath() [2/2]

ByteString com.google.protobuf.CodedInputStream.StreamDecoder.readBytesSlowPath ( final int  size) throws IOException
inlineprivate

Like readBytes, but caller must have already checked the fast path: (size <= (bufferSize - pos) && size > 0 || size == 0)

Definition at line 3020 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readDouble() [1/2]

double com.google.protobuf.CodedInputStream.StreamDecoder.readDouble ( ) throws IOException
inline

Read a

double

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2212 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readDouble() [2/2]

double com.google.protobuf.CodedInputStream.StreamDecoder.readDouble ( ) throws IOException
inline

Read a

double

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2260 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readEnum() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readEnum ( ) throws IOException
inline

Read an enum field value from the stream. Caller is responsible for converting the numeric value to an actual enum.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2430 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readEnum() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readEnum ( ) throws IOException
inline

Read an enum field value from the stream. Caller is responsible for converting the numeric value to an actual enum.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2476 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readFixed32() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readFixed32 ( ) throws IOException
inline

Read a

fixed32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2242 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readFixed32() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readFixed32 ( ) throws IOException
inline

Read a

fixed32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2290 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readFixed64() [1/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readFixed64 ( ) throws IOException
inline

Read a

fixed64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2237 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readFixed64() [2/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readFixed64 ( ) throws IOException
inline

Read a

fixed64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2285 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readFloat() [1/2]

float com.google.protobuf.CodedInputStream.StreamDecoder.readFloat ( ) throws IOException
inline

Read a

float

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2217 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readFloat() [2/2]

float com.google.protobuf.CodedInputStream.StreamDecoder.readFloat ( ) throws IOException
inline

Read a

float

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2265 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readGroup() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.readGroup ( final int  fieldNumber,
final MessageLite.Builder  builder,
final ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

◆ readGroup() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.readGroup ( final int  fieldNumber,
final MessageLite.Builder  builder,
final ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2350 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readInt32() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readInt32 ( ) throws IOException
inline

◆ readInt32() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readInt32 ( ) throws IOException
inline

Read an

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2280 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readInt64() [1/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readInt64 ( ) throws IOException
inline

◆ readInt64() [2/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readInt64 ( ) throws IOException
inline

Read an

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2275 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readMessage() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.readMessage ( final MessageLite.Builder  builder,
final ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

Read an embedded message field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2341 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readMessage() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.readMessage ( final MessageLite.Builder  builder,
final ExtensionRegistryLite  extensionRegistry 
) throws IOException
inline

Read an embedded message field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2385 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawByte() [1/2]

byte com.google.protobuf.CodedInputStream.StreamDecoder.readRawByte ( ) throws IOException
inline

Read one byte from the input.

Exceptions
InvalidProtocolBufferExceptionThe end of the stream or the current limit was reached.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2810 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawByte() [2/2]

byte com.google.protobuf.CodedInputStream.StreamDecoder.readRawByte ( ) throws IOException
inline

Read one byte from the input.

Exceptions
InvalidProtocolBufferExceptionThe end of the stream or the current limit was reached.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2857 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytes() [1/2]

byte [] com.google.protobuf.CodedInputStream.StreamDecoder.readRawBytes ( final int  size) throws IOException
inline

Read a fixed size of bytes from the input.

Exceptions
InvalidProtocolBufferExceptionThe end of the stream or the current limit was reached.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2818 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytes() [2/2]

byte [] com.google.protobuf.CodedInputStream.StreamDecoder.readRawBytes ( final int  size) throws IOException
inline

Read a fixed size of bytes from the input.

Exceptions
InvalidProtocolBufferExceptionThe end of the stream or the current limit was reached.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2865 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytesSlowPath() [1/2]

byte [] com.google.protobuf.CodedInputStream.StreamDecoder.readRawBytesSlowPath ( final int  size,
boolean  ensureNoLeakedReferences 
) throws IOException
inlineprivate

Exactly like readRawBytes, but caller must have already checked the fast path: (size <= (bufferSize - pos) && size > 0)

If ensureNoLeakedReferences is true, the value is guaranteed to have not escaped to untrusted code.

Definition at line 2836 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytesSlowPath() [2/2]

byte [] com.google.protobuf.CodedInputStream.StreamDecoder.readRawBytesSlowPath ( final int  size,
boolean  ensureNoLeakedReferences 
) throws IOException
inlineprivate

Exactly like readRawBytes, but caller must have already checked the fast path: (size <= (bufferSize - pos) && size > 0)

If ensureNoLeakedReferences is true, the value is guaranteed to have not escaped to untrusted code.

Definition at line 2883 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytesSlowPathOneChunk() [1/2]

byte [] com.google.protobuf.CodedInputStream.StreamDecoder.readRawBytesSlowPathOneChunk ( final int  size) throws IOException
inlineprivate

Attempts to read the data in one byte array when it's safe to do. Returns null if the size to read is too large and needs to be allocated in smaller chunks for security reasons.

Returns a byte[] that may have escaped to user code via InputStream APIs.

Definition at line 2882 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytesSlowPathOneChunk() [2/2]

byte [] com.google.protobuf.CodedInputStream.StreamDecoder.readRawBytesSlowPathOneChunk ( final int  size) throws IOException
inlineprivate

Attempts to read the data in one byte array when it's safe to do. Returns null if the size to read is too large and needs to be allocated in smaller chunks for security reasons.

Returns a byte[] that may have escaped to user code via InputStream APIs.

Definition at line 2929 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytesSlowPathRemainingChunks() [1/2]

List<byte[]> com.google.protobuf.CodedInputStream.StreamDecoder.readRawBytesSlowPathRemainingChunks ( int  sizeLeft) throws IOException
inlineprivate

Reads the remaining data in small chunks from the input stream.

Returns a byte[] that may have escaped to user code via InputStream APIs.

Definition at line 2940 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytesSlowPathRemainingChunks() [2/2]

List<byte[]> com.google.protobuf.CodedInputStream.StreamDecoder.readRawBytesSlowPathRemainingChunks ( int  sizeLeft) throws IOException
inlineprivate

Reads the remaining data in small chunks from the input stream.

Returns a byte[] that may have escaped to user code via InputStream APIs.

Definition at line 2987 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawLittleEndian32() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readRawLittleEndian32 ( ) throws IOException
inline

Read a 32-bit little-endian integer from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2612 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawLittleEndian32() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readRawLittleEndian32 ( ) throws IOException
inline

Read a 32-bit little-endian integer from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2658 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawLittleEndian64() [1/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readRawLittleEndian64 ( ) throws IOException
inline

Read a 64-bit little-endian integer from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2629 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawLittleEndian64() [2/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readRawLittleEndian64 ( ) throws IOException
inline

Read a 64-bit little-endian integer from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2675 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawVarint32() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readRawVarint32 ( ) throws IOException
inline

Read a raw Varint from the stream. If larger than 32 bits, discard the upper bits.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2457 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawVarint32() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readRawVarint32 ( ) throws IOException
inline

Read a raw Varint from the stream. If larger than 32 bits, discard the upper bits.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2503 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawVarint64() [1/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readRawVarint64 ( ) throws IOException
inline

◆ readRawVarint64() [2/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readRawVarint64 ( ) throws IOException
inline

Read a raw Varint from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2572 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readSFixed32() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readSFixed32 ( ) throws IOException
inline

Read an

sfixed32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2435 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readSFixed32() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readSFixed32 ( ) throws IOException
inline

Read an

sfixed32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2481 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readSFixed64() [1/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readSFixed64 ( ) throws IOException
inline

Read an

sfixed64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2440 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readSFixed64() [2/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readSFixed64 ( ) throws IOException
inline

Read an

sfixed64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2486 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readSInt32() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readSInt32 ( ) throws IOException
inline

Read an

sint32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2445 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readSInt32() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readSInt32 ( ) throws IOException
inline

Read an

sint32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2491 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readSInt64() [1/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readSInt64 ( ) throws IOException
inline

Read an

sint64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2450 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readSInt64() [2/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readSInt64 ( ) throws IOException
inline

Read an

sint64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2496 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readString() [1/2]

String com.google.protobuf.CodedInputStream.StreamDecoder.readString ( ) throws IOException
inline

Read a

string

field value from the stream. If the stream contains malformed UTF-8, replace the offending bytes with the standard UTF-8 replacement character.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2252 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readString() [2/2]

String com.google.protobuf.CodedInputStream.StreamDecoder.readString ( ) throws IOException
inline

Read a

string

field value from the stream. If the stream contains malformed UTF-8, replace the offending bytes with the standard UTF-8 replacement character.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2300 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readStringRequireUtf8() [1/2]

String com.google.protobuf.CodedInputStream.StreamDecoder.readStringRequireUtf8 ( ) throws IOException
inline

Read a

string

field value from the stream. If the stream contains malformed UTF-8, throw exception InvalidProtocolBufferException.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2275 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readStringRequireUtf8() [2/2]

String com.google.protobuf.CodedInputStream.StreamDecoder.readStringRequireUtf8 ( ) throws IOException
inline

Read a

string

field value from the stream. If the stream contains malformed UTF-8, throw exception InvalidProtocolBufferException.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2323 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readTag() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readTag ( ) throws IOException
inline

Attempt to read a field tag, returning zero if we have reached EOF. Protocol message parsers use this to read tags, since a protocol message may legally end wherever a tag occurs, and zero is not a valid tag number.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2058 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readTag() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readTag ( ) throws IOException
inline

Attempt to read a field tag, returning zero if we have reached EOF. Protocol message parsers use this to read tags, since a protocol message may legally end wherever a tag occurs, and zero is not a valid tag number.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2106 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readUInt32() [1/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readUInt32 ( ) throws IOException
inline

◆ readUInt32() [2/2]

int com.google.protobuf.CodedInputStream.StreamDecoder.readUInt32 ( ) throws IOException
inline

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2471 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readUInt64() [1/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readUInt64 ( ) throws IOException
inline

◆ readUInt64() [2/2]

long com.google.protobuf.CodedInputStream.StreamDecoder.readUInt64 ( ) throws IOException
inline

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2270 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readUnknownGroup() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.readUnknownGroup ( final int  fieldNumber,
final MessageLite.Builder  builder 
) throws IOException
inline

Reads a

field value from the stream and merges it into the given {}. deprecated 18.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2335 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readUnknownGroup() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.readUnknownGroup ( final int  fieldNumber,
final MessageLite.Builder  builder 
) throws IOException
inline

Reads a

field value from the stream and merges it into the given {}. deprecated 18.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2379 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ recomputeBufferSizeAfterLimit() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.recomputeBufferSizeAfterLimit ( )
inlineprivate

◆ recomputeBufferSizeAfterLimit() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.recomputeBufferSizeAfterLimit ( )
inlineprivate

◆ refillBuffer() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.refillBuffer ( int  n) throws IOException
inlineprivate

Reads more bytes from the input, making at least

n

bytes available in the buffer. Caller must ensure that the requested space is not yet available, and that the requested space is less than BUFFER_SIZE.

Exceptions
InvalidProtocolBufferExceptionThe end of the stream or the current limit was reached.

Definition at line 2730 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ refillBuffer() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.refillBuffer ( int  n) throws IOException
inlineprivate

Reads more bytes from the input, making at least

n

bytes available in the buffer. Caller must ensure that the requested space is not yet available, and that the requested space is less than BUFFER_SIZE.

Exceptions
InvalidProtocolBufferExceptionThe end of the stream or the current limit was reached.

Definition at line 2776 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ resetSizeCounter() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.resetSizeCounter ( )
inline

Resets the current size counter to zero (see setSizeLimit(int)). Only valid for {}-backed streams.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2657 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ resetSizeCounter() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.resetSizeCounter ( )
inline

Resets the current size counter to zero (see setSizeLimit(int)). Only valid for {}-backed streams.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2703 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skip()

static long com.google.protobuf.CodedInputStream.StreamDecoder.skip ( InputStream  input,
long  length 
) throws IOException
inlinestaticprivate

◆ skipField() [1/4]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.skipField ( final int  tag) throws IOException
inline

Reads and discards a single field, given its tag value.

Returns
false
if the tag is an endgroup tag, in which case nothing is skipped. Otherwise, returns
true
.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2086 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipField() [2/4]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.skipField ( final int  tag) throws IOException
inline

Reads and discards a single field, given its tag value.

Returns
false
if the tag is an endgroup tag, in which case nothing is skipped. Otherwise, returns
true
.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2134 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipField() [3/4]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.skipField ( final int  tag,
final CodedOutputStream  output 
) throws IOException
inline

Reads a single field and writes it to output in wire format, given its tag value.

Returns
false
if the tag is an endgroup tag, in which case nothing is skipped. Otherwise, returns
true
.
Deprecated:
use

or

UnknownFieldSetLite

to skip to an output stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2113 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipField() [4/4]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.skipField ( final int  tag,
final CodedOutputStream  output 
) throws IOException
inline

Reads a single field and writes it to output in wire format, given its tag value.

Returns
false
if the tag is an endgroup tag, in which case nothing is skipped. Otherwise, returns
true
.
Deprecated:
use

or

UnknownFieldSetLite

to skip to an output stream.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2161 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipMessage() [1/4]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipMessage ( ) throws IOException
inline

Reads and discards an entire message. This will read either until EOF or until an endgroup tag, whichever comes first.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2164 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipMessage() [2/4]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipMessage ( ) throws IOException
inline

Reads and discards an entire message. This will read either until EOF or until an endgroup tag, whichever comes first.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2212 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipMessage() [3/4]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipMessage ( CodedOutputStream  output) throws IOException
inline

Reads an entire message and writes it to output in wire format. This will read either until EOF or until an endgroup tag, whichever comes first.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2174 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipMessage() [4/4]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipMessage ( CodedOutputStream  output) throws IOException
inline

Reads an entire message and writes it to output in wire format. This will read either until EOF or until an endgroup tag, whichever comes first.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 2222 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipRawBytes() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawBytes ( final int  size) throws IOException
inline

Reads and discards

bytes.

Exceptions
InvalidProtocolBufferExceptionThe end of the stream or the current limit was reached.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 3013 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipRawBytes() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawBytes ( final int  size) throws IOException
inline

Reads and discards

bytes.

Exceptions
InvalidProtocolBufferExceptionThe end of the stream or the current limit was reached.

Reimplemented from com.google.protobuf.CodedInputStream.

Definition at line 3060 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipRawBytesSlowPath() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawBytesSlowPath ( final int  size) throws IOException
inlineprivate

Exactly like skipRawBytes, but caller must have already checked the fast path: (size <= (bufferSize - pos) && size >= 0)

Definition at line 3026 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipRawBytesSlowPath() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawBytesSlowPath ( final int  size) throws IOException
inlineprivate

Exactly like skipRawBytes, but caller must have already checked the fast path: (size <= (bufferSize - pos) && size >= 0)

Definition at line 3073 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipRawVarint() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawVarint ( ) throws IOException
inlineprivate

◆ skipRawVarint() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawVarint ( ) throws IOException
inlineprivate

◆ skipRawVarintFastPath() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawVarintFastPath ( ) throws IOException
inlineprivate

◆ skipRawVarintFastPath() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawVarintFastPath ( ) throws IOException
inlineprivate

◆ skipRawVarintSlowPath() [1/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawVarintSlowPath ( ) throws IOException
inlineprivate

◆ skipRawVarintSlowPath() [2/2]

void com.google.protobuf.CodedInputStream.StreamDecoder.skipRawVarintSlowPath ( ) throws IOException
inlineprivate

◆ tryRefillBuffer() [1/2]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.tryRefillBuffer ( int  n) throws IOException
inlineprivate

Tries to read more bytes from the input, making at least

n

bytes available in the buffer. Caller must ensure that the requested space is not yet available, and that the requested space is less than BUFFER_SIZE.

Returns
true
If the bytes could be made available;
false
1. Current at the end of the stream 2. The current limit was reached 3. The total size limit was reached

Definition at line 2750 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ tryRefillBuffer() [2/2]

boolean com.google.protobuf.CodedInputStream.StreamDecoder.tryRefillBuffer ( int  n) throws IOException
inlineprivate

Tries to read more bytes from the input, making at least

n

bytes available in the buffer. Caller must ensure that the requested space is not yet available, and that the requested space is less than BUFFER_SIZE.

Returns
true
If the bytes could be made available;
false
1. Current at the end of the stream 2. The current limit was reached 3. The total size limit was reached

Definition at line 2796 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

Member Data Documentation

◆ buffer

final byte [] com.google.protobuf.CodedInputStream.StreamDecoder.buffer
private

◆ bufferSize

int com.google.protobuf.CodedInputStream.StreamDecoder.bufferSize
private

bufferSize represents how many bytes are currently filled in the buffer

Definition at line 2031 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ bufferSizeAfterLimit

int com.google.protobuf.CodedInputStream.StreamDecoder.bufferSizeAfterLimit
private

◆ currentLimit

int com.google.protobuf.CodedInputStream.StreamDecoder.currentLimit = Integer.MAX_VALUE
private

The absolute position of the end of the current message.

Definition at line 2046 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ input

final InputStream com.google.protobuf.CodedInputStream.StreamDecoder.input
private

◆ lastTag

int com.google.protobuf.CodedInputStream.StreamDecoder.lastTag
private

◆ pos

int com.google.protobuf.CodedInputStream.StreamDecoder.pos
private

◆ refillCallback

RefillCallback com.google.protobuf.CodedInputStream.StreamDecoder.refillCallback = null
private

◆ totalBytesRetired

int com.google.protobuf.CodedInputStream.StreamDecoder.totalBytesRetired
private

The total number of bytes read before the current buffer. The total bytes read up to the current position can be computed as

. This value may be negative if reading started in the middle of the current buffer (e.g. if the constructor that takes a byte array and an offset was used).

Definition at line 2043 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.


The documentation for this class was generated from the following file:
google::protobuf::int64
int64_t int64
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/stubs/port.h:151
google::protobuf::uint32
uint32_t uint32
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/stubs/port.h:155
google::protobuf::python::cmessage::UnknownFieldSet
static PyObject * UnknownFieldSet(CMessage *self)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:2512
com.google.protobuf.CodedInputStream.CodedInputStream
CodedInputStream()
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:198
com.google.protobuf.CodedInputStream.StreamDecoder.pos
int pos
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:2034
com.google.protobuf.CodedInputStream.StreamDecoder.currentLimit
int currentLimit
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:2046
google::protobuf::int32
int32_t int32
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/stubs/port.h:150
google::protobuf::uint64
uint64_t uint64
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/stubs/port.h:156
com.google.protobuf.CodedInputStream.StreamDecoder.pushLimit
int pushLimit(int byteLimit)
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:2662
n
int n
Definition: abseil-cpp/absl/container/btree_test.cc:1080
upload.group
group
Definition: bloaty/third_party/googletest/googlemock/scripts/upload.py:397
bytes
uint8 bytes[10]
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/coded_stream_unittest.cc:153
com.google.protobuf.CodedInputStream.StreamDecoder.totalBytesRetired
int totalBytesRetired
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:2043
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:02