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

Public Member Functions

int getFieldNumber () throws IOException
 
int getTag ()
 
int getTotalBytesRead ()
 
boolean readBool () throws IOException
 
void readBoolList (List< Boolean > target) throws IOException
 
ByteString readBytes () throws IOException
 
void readBytesList (List< ByteString > target) throws IOException
 
double readDouble () throws IOException
 
void readDoubleList (List< Double > target) throws IOException
 
int readEnum () throws IOException
 
void readEnumList (List< Integer > target) throws IOException
 
int readFixed32 () throws IOException
 
void readFixed32List (List< Integer > target) throws IOException
 
long readFixed64 () throws IOException
 
void readFixed64List (List< Long > target) throws IOException
 
float readFloat () throws IOException
 
void readFloatList (List< Float > target) throws IOException
 
int readInt32 () throws IOException
 
void readInt32List (List< Integer > target) throws IOException
 
long readInt64 () throws IOException
 
void readInt64List (List< Long > target) throws IOException
 
int readSFixed32 () throws IOException
 
void readSFixed32List (List< Integer > target) throws IOException
 
long readSFixed64 () throws IOException
 
void readSFixed64List (List< Long > target) throws IOException
 
int readSInt32 () throws IOException
 
void readSInt32List (List< Integer > target) throws IOException
 
long readSInt64 () throws IOException
 
void readSInt64List (List< Long > target) throws IOException
 
String readString () throws IOException
 
String readStringInternal (boolean requireUtf8) throws IOException
 
void readStringList (List< String > target) throws IOException
 
void readStringListInternal (List< String > target, boolean requireUtf8) throws IOException
 
void readStringListRequireUtf8 (List< String > target) throws IOException
 
String readStringRequireUtf8 () throws IOException
 
int readUInt32 () throws IOException
 
void readUInt32List (List< Integer > target) throws IOException
 
long readUInt64 () throws IOException
 
void readUInt64List (List< Long > target) throws IOException
 
long readVarint64 () throws IOException
 
 SafeHeapReader (ByteBuffer bytebuf, boolean bufferIsImmutable)
 
boolean skipField () throws IOException
 

Private Member Functions

boolean isAtEnd ()
 
byte readByte () throws IOException
 
Object readField (WireFormat.FieldType fieldType, Class<?> messageType, ExtensionRegistryLite extensionRegistry) throws IOException
 
int readLittleEndian32 () throws IOException
 
int readLittleEndian32_NoCheck ()
 
long readLittleEndian64 () throws IOException
 
long readLittleEndian64_NoCheck ()
 
int readVarint32 () throws IOException
 
long readVarint64SlowPath () throws IOException
 
void requireBytes (int size) throws IOException
 
void requirePosition (int expectedPosition) throws IOException
 
void requireWireType (int requiredWireType) throws IOException
 
void skipBytes (final int size) throws IOException
 
void skipGroup () throws IOException
 
void skipVarint () throws IOException
 
void skipVarintSlowPath () throws IOException
 
void verifyPackedFixed32Length (int bytes) throws IOException
 
void verifyPackedFixed64Length (int bytes) throws IOException
 

Private Attributes

final byte[] buffer
 
final boolean bufferIsImmutable
 
int endGroupTag
 
final int initialPos
 
int limit
 
int pos
 
int tag
 

Detailed Description

A BinaryReader implementation that operates on a heap ByteBuffer. Uses only safe operations on the underlying array.

Definition at line 91 of file BinaryReader.java.

Constructor & Destructor Documentation

◆ SafeHeapReader()

com.google.protobuf.BinaryReader.SafeHeapReader.SafeHeapReader ( ByteBuffer  bytebuf,
boolean  bufferIsImmutable 
)
inline

Definition at line 100 of file BinaryReader.java.

Member Function Documentation

◆ getFieldNumber()

int com.google.protobuf.BinaryReader.SafeHeapReader.getFieldNumber ( ) throws IOException
inline

Definition at line 117 of file BinaryReader.java.

◆ getTag()

int com.google.protobuf.BinaryReader.SafeHeapReader.getTag ( )
inline

Definition at line 129 of file BinaryReader.java.

◆ getTotalBytesRead()

int com.google.protobuf.BinaryReader.SafeHeapReader.getTotalBytesRead ( )
inline

Definition at line 112 of file BinaryReader.java.

◆ isAtEnd()

boolean com.google.protobuf.BinaryReader.SafeHeapReader.isAtEnd ( )
inlineprivate

Definition at line 107 of file BinaryReader.java.

◆ readBool()

boolean com.google.protobuf.BinaryReader.SafeHeapReader.readBool ( ) throws IOException
inline

Definition at line 203 of file BinaryReader.java.

◆ readBoolList()

void com.google.protobuf.BinaryReader.SafeHeapReader.readBoolList ( List< Boolean >  target) throws IOException
inline

Definition at line 811 of file BinaryReader.java.

◆ readByte()

byte com.google.protobuf.BinaryReader.SafeHeapReader.readByte ( ) throws IOException
inlineprivate

Definition at line 1611 of file BinaryReader.java.

◆ readBytes()

ByteString com.google.protobuf.BinaryReader.SafeHeapReader.readBytes ( ) throws IOException
inline

Definition at line 310 of file BinaryReader.java.

◆ readBytesList()

void com.google.protobuf.BinaryReader.SafeHeapReader.readBytesList ( List< ByteString target) throws IOException
inline

Definition at line 993 of file BinaryReader.java.

◆ readDouble()

double com.google.protobuf.BinaryReader.SafeHeapReader.readDouble ( ) throws IOException
inline

Definition at line 161 of file BinaryReader.java.

◆ readDoubleList()

void com.google.protobuf.BinaryReader.SafeHeapReader.readDoubleList ( List< Double >  target) throws IOException
inline

Definition at line 363 of file BinaryReader.java.

◆ readEnum()

int com.google.protobuf.BinaryReader.SafeHeapReader.readEnum ( ) throws IOException
inline

Definition at line 333 of file BinaryReader.java.

◆ readEnumList()

void com.google.protobuf.BinaryReader.SafeHeapReader.readEnumList ( List< Integer >  target) throws IOException
inline

Definition at line 1078 of file BinaryReader.java.

◆ readField()

Object com.google.protobuf.BinaryReader.SafeHeapReader.readField ( WireFormat.FieldType  fieldType,
Class<?>  messageType,
ExtensionRegistryLite  extensionRegistry 
) throws IOException
inlineprivate

Definition at line 1448 of file BinaryReader.java.

◆ readFixed32()

int com.google.protobuf.BinaryReader.SafeHeapReader.readFixed32 ( ) throws IOException
inline

Definition at line 197 of file BinaryReader.java.

◆ readFixed32List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readFixed32List ( List< Integer >  target) throws IOException
inline

Definition at line 747 of file BinaryReader.java.

◆ readFixed64()

long com.google.protobuf.BinaryReader.SafeHeapReader.readFixed64 ( ) throws IOException
inline

Definition at line 191 of file BinaryReader.java.

◆ readFixed64List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readFixed64List ( List< Long >  target) throws IOException
inline

Definition at line 683 of file BinaryReader.java.

◆ readFloat()

float com.google.protobuf.BinaryReader.SafeHeapReader.readFloat ( ) throws IOException
inline

Definition at line 167 of file BinaryReader.java.

◆ readFloatList()

void com.google.protobuf.BinaryReader.SafeHeapReader.readFloatList ( List< Float >  target) throws IOException
inline

Definition at line 427 of file BinaryReader.java.

◆ readInt32()

int com.google.protobuf.BinaryReader.SafeHeapReader.readInt32 ( ) throws IOException
inline

Definition at line 185 of file BinaryReader.java.

◆ readInt32List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readInt32List ( List< Integer >  target) throws IOException
inline

Definition at line 619 of file BinaryReader.java.

◆ readInt64()

long com.google.protobuf.BinaryReader.SafeHeapReader.readInt64 ( ) throws IOException
inline

Definition at line 179 of file BinaryReader.java.

◆ readInt64List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readInt64List ( List< Long >  target) throws IOException
inline

Definition at line 555 of file BinaryReader.java.

◆ readLittleEndian32()

int com.google.protobuf.BinaryReader.SafeHeapReader.readLittleEndian32 ( ) throws IOException
inlineprivate

Definition at line 1618 of file BinaryReader.java.

◆ readLittleEndian32_NoCheck()

int com.google.protobuf.BinaryReader.SafeHeapReader.readLittleEndian32_NoCheck ( )
inlineprivate

Definition at line 1628 of file BinaryReader.java.

◆ readLittleEndian64()

long com.google.protobuf.BinaryReader.SafeHeapReader.readLittleEndian64 ( ) throws IOException
inlineprivate

Definition at line 1623 of file BinaryReader.java.

◆ readLittleEndian64_NoCheck()

long com.google.protobuf.BinaryReader.SafeHeapReader.readLittleEndian64_NoCheck ( )
inlineprivate

Definition at line 1638 of file BinaryReader.java.

◆ readSFixed32()

int com.google.protobuf.BinaryReader.SafeHeapReader.readSFixed32 ( ) throws IOException
inline

Definition at line 339 of file BinaryReader.java.

◆ readSFixed32List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readSFixed32List ( List< Integer >  target) throws IOException
inline

Definition at line 1140 of file BinaryReader.java.

◆ readSFixed64()

long com.google.protobuf.BinaryReader.SafeHeapReader.readSFixed64 ( ) throws IOException
inline

Definition at line 345 of file BinaryReader.java.

◆ readSFixed64List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readSFixed64List ( List< Long >  target) throws IOException
inline

Definition at line 1204 of file BinaryReader.java.

◆ readSInt32()

int com.google.protobuf.BinaryReader.SafeHeapReader.readSInt32 ( ) throws IOException
inline

Definition at line 351 of file BinaryReader.java.

◆ readSInt32List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readSInt32List ( List< Integer >  target) throws IOException
inline

Definition at line 1268 of file BinaryReader.java.

◆ readSInt64()

long com.google.protobuf.BinaryReader.SafeHeapReader.readSInt64 ( ) throws IOException
inline

Definition at line 357 of file BinaryReader.java.

◆ readSInt64List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readSInt64List ( List< Long >  target) throws IOException
inline

Definition at line 1330 of file BinaryReader.java.

◆ readString()

String com.google.protobuf.BinaryReader.SafeHeapReader.readString ( ) throws IOException
inline

Definition at line 209 of file BinaryReader.java.

◆ readStringInternal()

String com.google.protobuf.BinaryReader.SafeHeapReader.readStringInternal ( boolean  requireUtf8) throws IOException
inline

Definition at line 218 of file BinaryReader.java.

◆ readStringList()

void com.google.protobuf.BinaryReader.SafeHeapReader.readStringList ( List< String >  target) throws IOException
inline

Definition at line 875 of file BinaryReader.java.

◆ readStringListInternal()

void com.google.protobuf.BinaryReader.SafeHeapReader.readStringListInternal ( List< String >  target,
boolean  requireUtf8 
) throws IOException
inline

Definition at line 884 of file BinaryReader.java.

◆ readStringListRequireUtf8()

void com.google.protobuf.BinaryReader.SafeHeapReader.readStringListRequireUtf8 ( List< String >  target) throws IOException
inline

Definition at line 880 of file BinaryReader.java.

◆ readStringRequireUtf8()

String com.google.protobuf.BinaryReader.SafeHeapReader.readStringRequireUtf8 ( ) throws IOException
inline

Definition at line 214 of file BinaryReader.java.

◆ readUInt32()

int com.google.protobuf.BinaryReader.SafeHeapReader.readUInt32 ( ) throws IOException
inline

Definition at line 327 of file BinaryReader.java.

◆ readUInt32List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readUInt32List ( List< Integer >  target) throws IOException
inline

Definition at line 1016 of file BinaryReader.java.

◆ readUInt64()

long com.google.protobuf.BinaryReader.SafeHeapReader.readUInt64 ( ) throws IOException
inline

Definition at line 173 of file BinaryReader.java.

◆ readUInt64List()

void com.google.protobuf.BinaryReader.SafeHeapReader.readUInt64List ( List< Long >  target) throws IOException
inline

Definition at line 491 of file BinaryReader.java.

◆ readVarint32()

int com.google.protobuf.BinaryReader.SafeHeapReader.readVarint32 ( ) throws IOException
inlineprivate

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

Definition at line 1494 of file BinaryReader.java.

◆ readVarint64()

long com.google.protobuf.BinaryReader.SafeHeapReader.readVarint64 ( ) throws IOException
inline

Definition at line 1531 of file BinaryReader.java.

◆ readVarint64SlowPath()

long com.google.protobuf.BinaryReader.SafeHeapReader.readVarint64SlowPath ( ) throws IOException
inlineprivate

Definition at line 1599 of file BinaryReader.java.

◆ requireBytes()

void com.google.protobuf.BinaryReader.SafeHeapReader.requireBytes ( int  size) throws IOException
inlineprivate

Definition at line 1695 of file BinaryReader.java.

◆ requirePosition()

void com.google.protobuf.BinaryReader.SafeHeapReader.requirePosition ( int  expectedPosition) throws IOException
inlineprivate

Definition at line 1723 of file BinaryReader.java.

◆ requireWireType()

void com.google.protobuf.BinaryReader.SafeHeapReader.requireWireType ( int  requiredWireType) throws IOException
inlineprivate

Definition at line 1701 of file BinaryReader.java.

◆ skipBytes()

void com.google.protobuf.BinaryReader.SafeHeapReader.skipBytes ( final int  size) throws IOException
inlineprivate

Definition at line 1675 of file BinaryReader.java.

◆ skipField()

boolean com.google.protobuf.BinaryReader.SafeHeapReader.skipField ( ) throws IOException
inline

Definition at line 134 of file BinaryReader.java.

◆ skipGroup()

void com.google.protobuf.BinaryReader.SafeHeapReader.skipGroup ( ) throws IOException
inlineprivate

Definition at line 1681 of file BinaryReader.java.

◆ skipVarint()

void com.google.protobuf.BinaryReader.SafeHeapReader.skipVarint ( ) throws IOException
inlineprivate

Definition at line 1652 of file BinaryReader.java.

◆ skipVarintSlowPath()

void com.google.protobuf.BinaryReader.SafeHeapReader.skipVarintSlowPath ( ) throws IOException
inlineprivate

Definition at line 1666 of file BinaryReader.java.

◆ verifyPackedFixed32Length()

void com.google.protobuf.BinaryReader.SafeHeapReader.verifyPackedFixed32Length ( int  bytes) throws IOException
inlineprivate

Definition at line 1715 of file BinaryReader.java.

◆ verifyPackedFixed64Length()

void com.google.protobuf.BinaryReader.SafeHeapReader.verifyPackedFixed64Length ( int  bytes) throws IOException
inlineprivate

Definition at line 1707 of file BinaryReader.java.

Member Data Documentation

◆ buffer

final byte [] com.google.protobuf.BinaryReader.SafeHeapReader.buffer
private

Definition at line 93 of file BinaryReader.java.

◆ bufferIsImmutable

final boolean com.google.protobuf.BinaryReader.SafeHeapReader.bufferIsImmutable
private

Definition at line 92 of file BinaryReader.java.

◆ endGroupTag

int com.google.protobuf.BinaryReader.SafeHeapReader.endGroupTag
private

Definition at line 98 of file BinaryReader.java.

◆ initialPos

final int com.google.protobuf.BinaryReader.SafeHeapReader.initialPos
private

Definition at line 95 of file BinaryReader.java.

◆ limit

int com.google.protobuf.BinaryReader.SafeHeapReader.limit
private

Definition at line 96 of file BinaryReader.java.

◆ pos

int com.google.protobuf.BinaryReader.SafeHeapReader.pos
private

Definition at line 94 of file BinaryReader.java.

◆ tag

int com.google.protobuf.BinaryReader.SafeHeapReader.tag
private

Definition at line 97 of file BinaryReader.java.


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


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