Class CodedInputStream
java.lang.Object
io.opentelemetry.exporter.internal.marshal.CodedInputStream
Minimal copy of protobuf-java's CodedInputStream, currently only used in GrpcStatusUtil.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisAtEnd()static CodedInputStreamnewInstance(byte[] serialized) Returns a newCodedInputStream.private static IOExceptionprivate static IOExceptionprivate static IOExceptiondoubleprivate byteprivate longintRead varint32.private longReads a string field.intreadTag()Reads the next tag.booleanskipField(int tag) Skips a field.private voidskipRawBytes(int length) private voidprivate voidprivate void
-
Field Details
-
buffer
private final byte[] buffer -
limit
private final int limit -
pos
private int pos -
lastTag
private int lastTag
-
-
Constructor Details
-
CodedInputStream
private CodedInputStream(byte[] buffer)
-
-
Method Details
-
newInstance
Returns a newCodedInputStream. -
readTag
-
readStringRequireUtf8
-
skipField
-
isAtEnd
private boolean isAtEnd() -
readRawVarint32
-
readRawVarint64SlowPath
- Throws:
IOException
-
readRawByte
- Throws:
IOException
-
skipRawVarint
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
readRawLittleEndian64
- Throws:
IOException
-
skipRawVarintFastPath
- Throws:
IOException
-
skipRawVarintSlowPath
- Throws:
IOException
-
skipRawBytes
- Throws:
IOException
-
newNegativeException
-
newTruncatedException
-
newMalformedVarintException
-