Google.Protobuf.CodedInputStream
Reads and decodes protocol message fields.
Returns true if the stream has reached the end of the input. This is the
case if either the end of the underlying input source has been reached or
the stream has reached a limit created using PushLimit.
Returns the current position in the input stream, or the position in the input buffer
Returns the recursion limit for this stream. This limit is applied whilst reading messages,
to avoid maliciously-recursive data.
Returns the size limit for this stream.
Creates a new CodedInputStream reading data from the given byte array.
Creates a new CodedInputStream that reads from the given byte array slice.
Creates a new CodedInputStream reading data from the given stream, which will be disposed
when the returned object is disposed.
Creates a new CodedInputStream reading data from the given stream.
Creates a CodedInputStream with the specified size and recursion limits, reading
from an input stream.
Disposes of this instance, potentially closing any underlying stream.
Peeks at the next tag in the stream. If it matches tag,
the tag is consumed and the method returns true; otherwise, the
stream is left in the original position and the method returns false.
Peeks at the next field tag. This is like calling ReadTag, but the
tag is not consumed. (So a subsequent call to ReadTag will return the
same value.)
Reads a bool field from the stream.
Reads a bytes field value from the stream.
Reads a double field from the stream.
Reads an enum field value from the stream.
Reads a fixed32 field from the stream.
Reads a fixed64 field from the stream.
Reads a float field from the stream.
Reads an embedded group field from the stream.
Reads an int32 field from the stream.
Reads an int64 field from the stream.
Reads a length for length-delimited data.
Reads an embedded message field value from the stream.
Reads a top-level message or a nested message after the limits for this message have been pushed.
(parser will proceed until the end of the current limit)
NOTE: this method needs to be public because it's invoked by the generated code - e.g. msg.MergeFrom(CodedInputStream input) method
Reads an sfixed32 field value from the stream.
Reads an sfixed64 field value from the stream.
Reads an sint32 field value from the stream.
Reads an sint64 field value from the stream.
Reads a string field from the stream.
Reads a field tag, returning the tag of 0 for "end of stream".
Reads a uint32 field value from the stream.
Reads a uint64 field from the stream.
Skips the data for the field with the tag we've just read.
This should be called directly after ReadTag, when
the caller wishes to skip an unknown field.