CodedOutputStream
Encodes and writes protocol message fields.
Indicates that a CodedOutputStream wrapping a flat byte array
ran out of space.
The buffer size used by CreateInstance(Stream).
Returns the current position in the stream, or the position in the output buffer
If writing to a flat array, returns the space left in the array. Otherwise,
throws an InvalidOperationException.
Creates a new CodedOutputStream that writes directly to the given
byte array. If more bytes are written than fit in the array,
OutOfSpaceException will be thrown.
Creates a new CodedOutputStream which write to the given stream, and disposes of that
stream when the returned CodedOutputStream is disposed.
Creates a new CodedOutputStream which write to the given stream and uses
the specified buffer size.
Creates a new CodedOutputStream which write to the given stream.
Creates a new CodedOutputStream which write to the given stream and uses
the specified buffer size.
Computes the number of bytes that would be needed to encode a
bool field, including the tag.
Computes the number of bytes that would be needed to encode a
bytes field, including the tag.
Computes the number of bytes that would be needed to encode a
double field, including the tag.
Computes the number of bytes that would be needed to encode a
enum field, including the tag. The caller is responsible for
converting the enum value to its numeric value.
Computes the number of bytes that would be needed to encode a
fixed32 field, including the tag.
Computes the number of bytes that would be needed to encode a
fixed64 field, including the tag.
Computes the number of bytes that would be needed to encode a
float field, including the tag.
Computes the number of bytes that would be needed to encode a
group field, including the tag.
Computes the number of bytes that would be needed to encode an
int32 field, including the tag.
Computes the number of bytes that would be needed to encode an
int64 field, including the tag.
Computes the number of bytes that would be needed to encode a length,
as written by WriteLength.
Computes the number of bytes that would be needed to encode an
embedded message field, including the tag.
Computes the number of bytes that would be needed to encode a varint.
Computes the number of bytes that would be needed to encode a varint.
Computes the number of bytes that would be needed to encode an
sfixed32 field, including the tag.
Computes the number of bytes that would be needed to encode an
sfixed64 field, including the tag.
Computes the number of bytes that would be needed to encode an
sint32 field, including the tag.
Computes the number of bytes that would be needed to encode an
sint64 field, including the tag.
Computes the number of bytes that would be needed to encode a
string field, including the tag.
Computes the number of bytes that would be needed to encode a tag.
Computes the number of bytes that would be needed to encode a
uint32 field, including the tag.
Computes the number of bytes that would be needed to encode a
uint64 field, including the tag.
Verifies that SpaceLeft returns zero. It's common to create a byte array
that is exactly big enough to hold a message, then write to it with
a CodedOutputStream. Calling CheckNoSpaceLeft after writing verifies that
the message was actually as big as expected, which can help finding bugs.
Flushes any buffered data and optionally closes the underlying stream, if any.
Flushes any buffered data to the underlying stream (if there is one).
Writes a bool field value, without a tag, to the stream.
Write a byte string, without a tag, to the stream.
The data is length-prefixed.
Writes a double field value, without a tag, to the stream.
Writes an enum value, without a tag, to the stream.
Writes a fixed32 field value, without a tag, to the stream.
Writes a fixed64 field value, without a tag, to the stream.
Writes a float field value, without a tag, to the stream.
Writes a group, without a tag, to the stream.
Writes an int32 field value, without a tag, to the stream.
Writes an int64 field value, without a tag, to the stream.
Writes a length (in bytes) for length-delimited data.
Writes a message, without a tag, to the stream.
The data is length-prefixed.
Writes a message, without a tag, to the stream.
Only the message data is written, without a length-delimiter.
Writes the given single-byte tag directly to the stream.
Writes the given two-byte tag directly to the stream.
Writes the given three-byte tag directly to the stream.
Writes the given four-byte tag directly to the stream.
Writes the given five-byte tag directly to the stream.
Writes an sfixed32 value, without a tag, to the stream.
Writes an sfixed64 value, without a tag, to the stream.
Writes an sint32 value, without a tag, to the stream.
Writes an sint64 value, without a tag, to the stream.
Writes a string field value, without a tag, to the stream.
The data is length-prefixed.
Encodes and writes a tag.
Writes an already-encoded tag.
Writes a uint32 value, without a tag, to the stream.
Writes a uint64 field value, without a tag, to the stream.