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

Public Member Functions

int available () throws IOException
 
int available () throws IOException
 
void mark (int readAheadLimit)
 
void mark (int readAheadLimit)
 
boolean markSupported ()
 
boolean markSupported ()
 
int read () throws IOException
 
int read () throws IOException
 
int read (byte[] b, int offset, int length)
 
int read (byte[] b, int offset, int length)
 
synchronized void reset ()
 
synchronized void reset ()
 
 RopeInputStream ()
 
 RopeInputStream ()
 
long skip (long length)
 
long skip (long length)
 

Private Member Functions

void advanceIfCurrentPieceFullyRead ()
 
void advanceIfCurrentPieceFullyRead ()
 
int availableInternal ()
 
void initialize ()
 
void initialize ()
 
int readSkipInternal (byte[] b, int offset, int length)
 
int readSkipInternal (byte[] b, int offset, int length)
 

Private Attributes

LeafByteString currentPiece
 
int currentPieceIndex
 
int currentPieceOffsetInRope
 
int currentPieceSize
 
int mark
 
PieceIterator pieceIterator
 

Detailed Description

This class is the RopeByteString equivalent for ByteArrayInputStream.

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

Constructor & Destructor Documentation

◆ RopeInputStream() [1/2]

com.google.protobuf.RopeByteString.RopeInputStream.RopeInputStream ( )
inline

◆ RopeInputStream() [2/2]

com.google.protobuf.RopeByteString.RopeInputStream.RopeInputStream ( )
inline

Member Function Documentation

◆ advanceIfCurrentPieceFullyRead() [1/2]

void com.google.protobuf.RopeByteString.RopeInputStream.advanceIfCurrentPieceFullyRead ( )
inlineprivate

Skips to the next piece if we have read all the data in the current piece. Sets currentPiece to null if we have reached the end of the input.

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

◆ advanceIfCurrentPieceFullyRead() [2/2]

void com.google.protobuf.RopeByteString.RopeInputStream.advanceIfCurrentPieceFullyRead ( )
inlineprivate

Skips to the next piece if we have read all the data in the current piece. Sets currentPiece to null if we have reached the end of the input.

Definition at line 950 of file protobuf/java/core/src/main/java/com/google/protobuf/RopeByteString.java.

◆ available() [1/2]

int com.google.protobuf.RopeByteString.RopeInputStream.available ( ) throws IOException
inline

◆ available() [2/2]

int com.google.protobuf.RopeByteString.RopeInputStream.available ( ) throws IOException
inline

◆ availableInternal()

int com.google.protobuf.RopeByteString.RopeInputStream.availableInternal ( )
inlineprivate

Computes the number of bytes still available to read.

Definition at line 967 of file protobuf/java/core/src/main/java/com/google/protobuf/RopeByteString.java.

◆ initialize() [1/2]

void com.google.protobuf.RopeByteString.RopeInputStream.initialize ( )
inlineprivate

Common initialization code used by both the constructor and reset()

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

◆ initialize() [2/2]

void com.google.protobuf.RopeByteString.RopeInputStream.initialize ( )
inlineprivate

Common initialization code used by both the constructor and reset()

Definition at line 938 of file protobuf/java/core/src/main/java/com/google/protobuf/RopeByteString.java.

◆ mark() [1/2]

void com.google.protobuf.RopeByteString.RopeInputStream.mark ( int  readAheadLimit)
inline

◆ mark() [2/2]

void com.google.protobuf.RopeByteString.RopeInputStream.mark ( int  readAheadLimit)
inline

◆ markSupported() [1/2]

boolean com.google.protobuf.RopeByteString.RopeInputStream.markSupported ( )
inline

◆ markSupported() [2/2]

boolean com.google.protobuf.RopeByteString.RopeInputStream.markSupported ( )
inline

◆ read() [1/4]

int com.google.protobuf.RopeByteString.RopeInputStream.read ( ) throws IOException
inline

◆ read() [2/4]

int com.google.protobuf.RopeByteString.RopeInputStream.read ( ) throws IOException
inline

◆ read() [3/4]

int com.google.protobuf.RopeByteString.RopeInputStream.read ( byte[]  b,
int  offset,
int  length 
)
inline

◆ read() [4/4]

int com.google.protobuf.RopeByteString.RopeInputStream.read ( byte[]  b,
int  offset,
int  length 
)
inline

◆ readSkipInternal() [1/2]

int com.google.protobuf.RopeByteString.RopeInputStream.readSkipInternal ( byte[]  b,
int  offset,
int  length 
)
inlineprivate

Internal implementation of read and skip. If b != null, then read the next

bytes into the buffer

b

at offset

. If b == null, then skip the next

bytes.

This method assumes that all error checking has already happened.

Returns the actual number of bytes read or skipped.

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

◆ readSkipInternal() [2/2]

int com.google.protobuf.RopeByteString.RopeInputStream.readSkipInternal ( byte[]  b,
int  offset,
int  length 
)
inlineprivate

Internal implementation of read and skip. If b != null, then read the next

bytes into the buffer

b

at offset

. If b == null, then skip the next

bytes.

This method assumes that all error checking has already happened.

Returns the actual number of bytes read or skipped.

Definition at line 882 of file protobuf/java/core/src/main/java/com/google/protobuf/RopeByteString.java.

◆ reset() [1/2]

synchronized void com.google.protobuf.RopeByteString.RopeInputStream.reset ( )
inline

◆ reset() [2/2]

synchronized void com.google.protobuf.RopeByteString.RopeInputStream.reset ( )
inline

◆ skip() [1/2]

long com.google.protobuf.RopeByteString.RopeInputStream.skip ( long  length)
inline

◆ skip() [2/2]

long com.google.protobuf.RopeByteString.RopeInputStream.skip ( long  length)
inline

Member Data Documentation

◆ currentPiece

LeafByteString com.google.protobuf.RopeByteString.RopeInputStream.currentPiece
private

◆ currentPieceIndex

int com.google.protobuf.RopeByteString.RopeInputStream.currentPieceIndex
private

◆ currentPieceOffsetInRope

int com.google.protobuf.RopeByteString.RopeInputStream.currentPieceOffsetInRope
private

◆ currentPieceSize

int com.google.protobuf.RopeByteString.RopeInputStream.currentPieceSize
private

◆ mark

int com.google.protobuf.RopeByteString.RopeInputStream.mark
private

◆ pieceIterator

PieceIterator com.google.protobuf.RopeByteString.RopeInputStream.pieceIterator
private

The documentation for this class was generated from the following file:
b
uint64_t b
Definition: abseil-cpp/absl/container/internal/layout_test.cc:53
len
int len
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:46
length
std::size_t length
Definition: abseil-cpp/absl/time/internal/test_util.cc:57
offset
voidpf uLong offset
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:142


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