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

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 length) throws IOException
 
byte[] readRawBytes (final int length) 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 length) throws IOException
 
void skipRawBytes (final int length) 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

long currentRemaining ()
 
long currentRemaining ()
 
void getNextByteBuffer () throws InvalidProtocolBufferException
 
void getNextByteBuffer () throws InvalidProtocolBufferException
 
 IterableDirectByteBufferDecoder (Iterable< ByteBuffer > inputBufs, int size, boolean immutableFlag)
 
 IterableDirectByteBufferDecoder (Iterable< ByteBuffer > inputBufs, int size, boolean immutableFlag)
 
void readRawBytesTo (byte[] bytes, int offset, final int length) throws IOException
 
void readRawBytesTo (byte[] bytes, int offset, final int length) throws IOException
 
void recomputeBufferSizeAfterLimit ()
 
void recomputeBufferSizeAfterLimit ()
 
int remaining ()
 
int remaining ()
 
void skipRawVarint () throws IOException
 
void skipRawVarint () throws IOException
 
ByteBuffer slice (int begin, int end) throws IOException
 
ByteBuffer slice (int begin, int end) throws IOException
 
void tryGetNextByteBuffer ()
 
void tryGetNextByteBuffer ()
 

Private Attributes

int bufferSizeAfterCurrentLimit
 
long currentAddress
 
ByteBuffer currentByteBuffer
 
long currentByteBufferLimit
 
long currentByteBufferPos
 
long currentByteBufferStartPos
 
int currentLimit = Integer.MAX_VALUE
 
boolean enableAliasing
 
boolean immutable
 
final boolean immutable
 
Iterable< ByteBuffer > input
 
final Iterable< ByteBuffer > input
 
Iterator< ByteBuffer > iterator
 
final Iterator< ByteBuffer > iterator
 
int lastTag
 
int startOffset
 
int totalBufferSize
 
int totalBytesRead
 

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 Iterable} as the data source. Requires the use of

sun.misc.Unsafe

to perform fast reads on the buffer.

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

Constructor & Destructor Documentation

◆ IterableDirectByteBufferDecoder() [1/2]

com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.IterableDirectByteBufferDecoder ( Iterable< ByteBuffer >  inputBufs,
int  size,
boolean  immutableFlag 
)
inlineprivate

The constructor of

Iterable<ByteBuffer>

decoder.

Parameters
inputBufsThe input data.
sizeThe total size of the input data.
immutableFlagwhether the input data is immutable.

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

◆ IterableDirectByteBufferDecoder() [2/2]

com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.IterableDirectByteBufferDecoder ( Iterable< ByteBuffer >  inputBufs,
int  size,
boolean  immutableFlag 
)
inlineprivate

The constructor of

Iterable<ByteBuffer>

decoder.

Parameters
inputBufsThe input data.
sizeThe total size of the input data.
immutableFlagwhether the input data is immutable.

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

Member Function Documentation

◆ checkLastTagWas() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3196 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ checkLastTagWas() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3243 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ currentRemaining() [1/2]

long com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.currentRemaining ( )
inlineprivate

Try to get the number of remaining bytes in

.

Returns
the number of remaining bytes in

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

◆ currentRemaining() [2/2]

long com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.currentRemaining ( )
inlineprivate

Try to get the number of remaining bytes in

.

Returns
the number of remaining bytes in

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

◆ enableAliasing() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3721 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ enableAliasing() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3781 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ getBytesUntilLimit() [1/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3766 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ getBytesUntilLimit() [2/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3826 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ getLastTag() [1/2]

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

◆ getLastTag() [2/2]

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

◆ getNextByteBuffer() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.getNextByteBuffer ( ) throws InvalidProtocolBufferException
inlineprivate

To get the next ByteBuffer from

, and then update the parameters

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

◆ getNextByteBuffer() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.getNextByteBuffer ( ) throws InvalidProtocolBufferException
inlineprivate

To get the next ByteBuffer from

, and then update the parameters

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

◆ getTotalBytesRead() [1/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3780 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ getTotalBytesRead() [2/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3840 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ isAtEnd() [1/2]

boolean com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3775 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ isAtEnd() [2/2]

boolean com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3835 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ popLimit() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3760 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ popLimit() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3820 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ pushLimit() [1/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3731 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ pushLimit() [2/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3791 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readBool() [1/2]

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

Read a

bool

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readBool() [2/2]

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

Read a

bool

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readByteArray() [1/2]

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

◆ readByteArray() [2/2]

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

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readByteBuffer() [1/2]

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

◆ readByteBuffer() [2/2]

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

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readBytes() [1/2]

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

◆ readBytes() [2/2]

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

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readDouble() [1/2]

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

Read a

double

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readDouble() [2/2]

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

Read a

double

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readEnum() [1/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3541 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readEnum() [2/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3601 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readFixed32() [1/2]

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

Read a

fixed32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readFixed32() [2/2]

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

Read a

fixed32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readFixed64() [1/2]

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

Read a

fixed64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readFixed64() [2/2]

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

Read a

fixed64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readFloat() [1/2]

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

Read a

float

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readFloat() [2/2]

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

Read a

float

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readGroup() [1/2]

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

◆ readGroup() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3445 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readInt32() [1/2]

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

◆ readInt32() [2/2]

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

Read an

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readInt64() [1/2]

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

◆ readInt64() [2/2]

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

Read an

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readMessage() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3437 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readMessage() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3480 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawByte() [1/2]

byte com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3786 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawByte() [2/2]

byte com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3846 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytes() [1/2]

byte [] com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3794 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytes() [2/2]

byte [] com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3854 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawBytesTo() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.readRawBytesTo ( byte[]  bytes,
int  offset,
final int  length 
) throws IOException
inlineprivate

Try to get raw bytes from

with the size of

and copy to

array. If the size is bigger than the number of remaining bytes in the input, then throw

truncatedMessage

exception.

Parameters
bytes
offset
length
Exceptions
IOException

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

◆ readRawBytesTo() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.readRawBytesTo ( byte[]  bytes,
int  offset,
final int  length 
) throws IOException
inlineprivate

Try to get raw bytes from

with the size of

and copy to

array. If the size is bigger than the number of remaining bytes in the input, then throw

truncatedMessage

exception.

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

◆ readRawLittleEndian32() [1/2]

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

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

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readRawLittleEndian32() [2/2]

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

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

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readRawLittleEndian64() [1/2]

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

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

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readRawLittleEndian64() [2/2]

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

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

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readRawVarint32() [1/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3566 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawVarint32() [2/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3626 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readRawVarint64() [1/2]

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

◆ readRawVarint64() [2/2]

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

Read a raw Varint from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readSFixed32() [1/2]

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

Read an

sfixed32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readSFixed32() [2/2]

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

Read an

sfixed32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readSFixed64() [1/2]

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

Read an

sfixed64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readSFixed64() [2/2]

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

Read an

sfixed64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readSInt32() [1/2]

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

Read an

sint32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readSInt32() [2/2]

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

Read an

sint32

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readSInt64() [1/2]

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

Read an

sint64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readSInt64() [2/2]

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

Read an

sint64

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readString() [1/2]

String com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3348 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readString() [2/2]

String com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3395 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readStringRequireUtf8() [1/2]

String com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3374 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readStringRequireUtf8() [2/2]

String com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3421 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readTag() [1/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3180 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readTag() [2/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3227 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readUInt32() [1/2]

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

◆ readUInt32() [2/2]

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

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readUInt64() [1/2]

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

◆ readUInt64() [2/2]

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

Read a

field value from the stream.

Reimplemented from com.google.protobuf.CodedInputStream.

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

◆ readUnknownGroup() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3431 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ readUnknownGroup() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3474 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ recomputeBufferSizeAfterLimit() [1/2]

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

◆ recomputeBufferSizeAfterLimit() [2/2]

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

◆ remaining() [1/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.remaining ( )
inlineprivate

Try to get the number of remaining bytes in

.

Returns
the number of remaining bytes in .

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

◆ remaining() [2/2]

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.remaining ( )
inlineprivate

Try to get the number of remaining bytes in

.

Returns
the number of remaining bytes in .

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

◆ resetSizeCounter() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3726 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ resetSizeCounter() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3786 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipField() [1/4]

boolean com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3208 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipField() [2/4]

boolean com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3255 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipField() [3/4]

boolean com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3235 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipField() [4/4]

boolean com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3282 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipMessage() [1/4]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3286 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipMessage() [2/4]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3333 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipMessage() [3/4]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3296 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipMessage() [4/4]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3343 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipRawBytes() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3854 of file bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipRawBytes() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.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 3909 of file protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java.

◆ skipRawVarint() [1/2]

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

◆ skipRawVarint() [2/2]

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

◆ slice() [1/2]

ByteBuffer com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.slice ( int  begin,
int  end 
) throws IOException
inlineprivate

◆ slice() [2/2]

ByteBuffer com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.slice ( int  begin,
int  end 
) throws IOException
inlineprivate

◆ tryGetNextByteBuffer() [1/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.tryGetNextByteBuffer ( )
inlineprivate

◆ tryGetNextByteBuffer() [2/2]

void com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.tryGetNextByteBuffer ( )
inlineprivate

Member Data Documentation

◆ bufferSizeAfterCurrentLimit

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.bufferSizeAfterCurrentLimit
private

The amount of available data in the input beyond currentLimit.

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

◆ currentAddress

long com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.currentAddress
private

If the current ByteBuffer is unsafe-direct based, currentAddress is the start address of this ByteBuffer; otherwise should be zero.

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

◆ currentByteBuffer

ByteBuffer com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.currentByteBuffer
private

◆ currentByteBufferLimit

long com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.currentByteBufferLimit
private

The limit position for current ByteBuffer

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

◆ currentByteBufferPos

long com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.currentByteBufferPos
private

The current position for current ByteBuffer

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

◆ currentByteBufferStartPos

long com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.currentByteBufferStartPos
private

◆ currentLimit

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

The absolute position of the end of the current message.

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

◆ enableAliasing

boolean com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.enableAliasing
private

If

true

, indicates that calls to read ByteString or

byte[]

may return slices of the underlying buffer, rather than copies.

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

◆ immutable [1/2]

boolean com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.immutable
private

If

true

, indicates that all the buffer are backing a ByteString and are therefore considered to be an immutable input source.

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

◆ immutable [2/2]

final boolean com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.immutable
private

If

true

, indicates that all the buffers are backing a ByteString and are therefore considered to be an immutable input source.

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

◆ input [1/2]

Iterable<ByteBuffer> com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.input
private

◆ input [2/2]

final Iterable<ByteBuffer> com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.input
private

The object that need to decode.

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

◆ iterator [1/2]

Iterator<ByteBuffer> com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.iterator
private

◆ iterator [2/2]

final Iterator<ByteBuffer> com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.iterator
private

◆ lastTag

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

The last tag that was read from this stream.

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

◆ startOffset

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.startOffset
private

The start position offset of the whole message, used as to reset the totalBytesRead

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

◆ totalBufferSize

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.totalBufferSize
private

The global total message length limit

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

◆ totalBytesRead

int com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.totalBytesRead
private

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
com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.currentLimit
int currentLimit
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:3115
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
google::protobuf::int32
int32_t int32
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/stubs/port.h:150
com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.input
Iterable< ByteBuffer > input
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:3095
google::protobuf::uint64
uint64_t uint64
Definition: third_party/bloaty/third_party/protobuf/src/google/protobuf/stubs/port.h:156
com.google.protobuf.CodedInputStream.IterableDirectByteBufferDecoder.pushLimit
int pushLimit(int byteLimit)
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:3731
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.IterableDirectByteBufferDecoder.currentByteBuffer
ByteBuffer currentByteBuffer
Definition: bloaty/third_party/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java:3099
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
length
std::size_t length
Definition: abseil-cpp/absl/time/internal/test_util.cc:57


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