Class CodedInputStream.ArrayDecoderNewVarintTagsLengthsOnly
java.lang.Object
com.google.protobuf.CodedInputStream
com.google.protobuf.CodedInputStream.ArrayDecoder
com.google.protobuf.CodedInputStream.ArrayDecoderNewVarintTagsLengthsOnly
- Enclosing class:
CodedInputStream
private static final class CodedInputStream.ArrayDecoderNewVarintTagsLengthsOnly
extends CodedInputStream.ArrayDecoder
-
Nested Class Summary
Nested classes/interfaces inherited from class CodedInputStream
CodedInputStream.VarintExperiment -
Field Summary
Fields inherited from class CodedInputStream
groupDepth, messageDepth, recursionLimit, sizeLimit, wrapper -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateArrayDecoderNewVarintTagsLengthsOnly(byte[] buffer, int offset, int len, boolean immutable) -
Method Summary
Modifier and TypeMethodDescriptionprotected intTemporary shim to enable new varint experiment.protected intTemporary shim to enable new varint experiment.Methods inherited from class 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, skipRawBytesMethods inherited from class 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
-
Constructor Details
-
ArrayDecoderNewVarintTagsLengthsOnly
private ArrayDecoderNewVarintTagsLengthsOnly(byte[] buffer, int offset, int len, boolean immutable)
-
-
Method Details
-
readRawVarint32Expected5BytesMax
Description 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:
IOException
-
readRawVarint32Expected10BytesMax
Description 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:
IOException
-