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

Public Member Functions

int read () throws IOException
 
int read () throws IOException
 
int read (byte[] b) throws IOException
 
int read (byte[] b) throws IOException
 
int read (byte[] b, int off, int len) throws IOException
 
int read (byte[] b, int off, int len) throws IOException
 
long skip (long len) throws IOException
 
long skip (long len) throws IOException
 
 SmallBlockInputStream (byte[] data, int blockSize)
 
 SmallBlockInputStream (byte[] data, int blockSize)
 

Private Attributes

final int blockSize
 
int readCalls
 
int skipCalls
 

Detailed Description

An InputStream which limits the number of bytes it reads at a time. We use this to make sure that CodedInputStream doesn't screw up when reading in small blocks.

Definition at line 145 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/CodedInputStreamTest.java.

Constructor & Destructor Documentation

◆ SmallBlockInputStream() [1/2]

com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.SmallBlockInputStream ( byte[]  data,
int  blockSize 
)
inline

◆ SmallBlockInputStream() [2/2]

com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.SmallBlockInputStream ( byte[]  data,
int  blockSize 
)
inline

Member Function Documentation

◆ read() [1/6]

int com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.read ( ) throws IOException
inline

◆ read() [2/6]

int com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.read ( ) throws IOException
inline

◆ read() [3/6]

int com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.read ( byte[]  b) throws IOException
inline

◆ read() [4/6]

int com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.read ( byte[]  b) throws IOException
inline

◆ read() [5/6]

int com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.read ( byte[]  b,
int  off,
int  len 
) throws IOException
inline

◆ read() [6/6]

int com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.read ( byte[]  b,
int  off,
int  len 
) throws IOException
inline

◆ skip() [1/2]

long com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.skip ( long  len) throws IOException
inline

◆ skip() [2/2]

long com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.skip ( long  len) throws IOException
inline

Member Data Documentation

◆ blockSize

final int com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.blockSize
private

◆ readCalls

int com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.readCalls
private

◆ skipCalls

int com.google.protobuf.CodedInputStreamTest.SmallBlockInputStream.skipCalls
private

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


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