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
 
void mark (int readAheadLimit)
 
boolean markSupported ()
 
int read () throws IOException
 
int read (byte[] b, int offset, int length)
 
synchronized void reset ()
 
 RopeInputStream ()
 
long skip (long length)
 

Private Member Functions

void advanceIfCurrentPieceFullyRead ()
 
void initialize ()
 
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 RopeByteString.java.

Constructor & Destructor Documentation

◆ RopeInputStream()

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

Definition at line 810 of file RopeByteString.java.

Member Function Documentation

◆ advanceIfCurrentPieceFullyRead()

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 RopeByteString.java.

◆ available()

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

Definition at line 880 of file RopeByteString.java.

◆ initialize()

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

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

Definition at line 904 of file RopeByteString.java.

◆ mark()

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

Definition at line 891 of file RopeByteString.java.

◆ markSupported()

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

Definition at line 886 of file RopeByteString.java.

◆ read() [1/2]

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

Definition at line 870 of file RopeByteString.java.

◆ read() [2/2]

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

Definition at line 815 of file RopeByteString.java.

◆ readSkipInternal()

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 RopeByteString.java.

◆ reset()

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

Definition at line 897 of file RopeByteString.java.

◆ skip()

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

Definition at line 825 of file RopeByteString.java.

Member Data Documentation

◆ currentPiece

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

Definition at line 800 of file RopeByteString.java.

◆ currentPieceIndex

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

Definition at line 804 of file RopeByteString.java.

◆ currentPieceOffsetInRope

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

Definition at line 806 of file RopeByteString.java.

◆ currentPieceSize

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

Definition at line 802 of file RopeByteString.java.

◆ mark

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

Definition at line 808 of file RopeByteString.java.

◆ pieceIterator

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

Definition at line 798 of file RopeByteString.java.


The documentation for this class was generated from the following file:
length
GLenum GLuint GLenum GLsizei length
Definition: glcorearb.h:2695
b
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:3228
offset
GLintptr offset
Definition: glcorearb.h:2944


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07