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 boolean
isAtEnd()
static CodedInputStream
newInstance
(byte[] serialized) Returns a newCodedInputStream
.private static IOException
private static IOException
private static IOException
double
private byte
private long
int
Read varint32.private long
Reads a string field.int
readTag()
Reads the next tag.boolean
skipField
(int tag) Skips a field.private void
skipRawBytes
(int length) private void
private void
private 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
Reads the next tag.- Throws:
IOException
-
readStringRequireUtf8
Reads a string field.- Throws:
IOException
-
skipField
Skips a field.- Throws:
IOException
-
isAtEnd
private boolean isAtEnd() -
readRawVarint32
Read varint32.- Throws:
IOException
-
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
-