Package com.google.protobuf
Class CodedInputStream.ArrayDecoderNewVarintAllCases
- java.lang.Object
-
- com.google.protobuf.CodedInputStream
-
- com.google.protobuf.CodedInputStream.ArrayDecoder
-
- com.google.protobuf.CodedInputStream.ArrayDecoderNewVarintAllCases
-
- Enclosing class:
- CodedInputStream
private static final class CodedInputStream.ArrayDecoderNewVarintAllCases extends CodedInputStream.ArrayDecoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.protobuf.CodedInputStream
CodedInputStream.VarintExperiment
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.CodedInputStream
groupDepth, messageDepth, recursionLimit, sizeLimit, wrapper
-
-
Constructor Summary
Constructors Modifier Constructor Description privateArrayDecoderNewVarintAllCases(byte[] buffer, int offset, int len, boolean immutable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intreadRawVarint32Expected10BytesMax()Temporary shim to enable new varint experiment.protected intreadRawVarint32Expected5BytesMax()Temporary shim to enable new varint experiment.-
Methods inherited from class com.google.protobuf.CodedInputStream.ArrayDecoder
checkLastTagWas, enableAliasing, getBytesUntilLimit, getLastTag, getTotalBytesRead, isAtEnd, popLimit, pushLimit, readBool, readByteArray, readByteBuffer, readBytes, readDouble, readEnum, readFixed32, readFixed64, readFloat, readGroup, readGroup, readInt32, readInt64, readMessage, readMessage, readRawByte, readRawBytes, readRawLittleEndian32, readRawLittleEndian64, readRawVarint32, readRawVarint32New, readRawVarint32Old, readRawVarint64, readRawVarint64SlowPath, readSFixed32, readSFixed64, readSInt32, readSInt64, readString, readStringRequireUtf8, readTag, readUInt32, readUInt64, readUnknownGroup, resetSizeCounter, skipField, skipField, skipRawBytes
-
Methods inherited from class com.google.protobuf.CodedInputStream
checkRecursionLimit, checkValidEndTag, decodeZigZag32, decodeZigZag64, discardUnknownFields, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, newInstance, readPrimitiveField, readRawVarint32, readRawVarint32, readString, setRecursionLimit, setSizeLimit, setVarintExperiment, shouldDiscardUnknownFields, skipMessage, skipMessage, unsetDiscardUnknownFields
-
-
-
-
Method Detail
-
readRawVarint32Expected5BytesMax
protected int readRawVarint32Expected5BytesMax() throws java.io.IOExceptionDescription copied from class:CodedInputStream.ArrayDecoderTemporary shim to enable new varint experiment.Same as readRawVarint32 but for callers where the varint being longer than 5 bytes should never happen in practice (eg tags and lengths).
- Specified by:
readRawVarint32Expected5BytesMaxin classCodedInputStream.ArrayDecoder- Throws:
java.io.IOException
-
readRawVarint32Expected10BytesMax
protected int readRawVarint32Expected10BytesMax() throws java.io.IOExceptionDescription copied from class:CodedInputStream.ArrayDecoderTemporary shim to enable new varint experiment.Same as readRawVarint32 but for callers where a 10-byte varint is 'normal' (eg int32 fields where negative values will be 10 bytes).
- Specified by:
readRawVarint32Expected10BytesMaxin classCodedInputStream.ArrayDecoder- Throws:
java.io.IOException
-
-