Property | Type | Description | |
---|---|---|---|
DefaultBufferSize | int |
Method | Description | |
---|---|---|
CheckNoSpaceLeft ( ) : void |
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 bugs.
|
|
ComputeBoolSize ( int fieldNumber, bool value ) : int |
Compute the number of bytes that would be needed to encode a bool field, including the tag.
|
|
ComputeBoolSizeNoTag ( bool value ) : int |
Compute the number of bytes that would be needed to encode a bool field, including the tag.
|
|
ComputeBytesSize ( int fieldNumber, ByteString value ) : int |
Compute the number of bytes that would be needed to encode a bytes field, including the tag.
|
|
ComputeBytesSizeNoTag ( ByteString value ) : int |
Compute the number of bytes that would be needed to encode a bytes field, including the tag.
|
|
ComputeDoubleSize ( int fieldNumber, double value ) : int |
Compute the number of bytes that would be needed to encode a double field, including the tag.
|
|
ComputeDoubleSizeNoTag ( double value ) : int |
Compute the number of bytes that would be needed to encode a double field, including the tag.
|
|
ComputeEnumSize ( int fieldNumber, int value ) : int |
Compute 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.
|
|
ComputeEnumSizeNoTag ( int value ) : int |
Compute 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.
|
|
ComputeFieldSize ( FieldType fieldType, int fieldNumber, Object value ) : int |
Compute the number of bytes that would be needed to encode a field of arbitrary type, including the tag, to the stream.
|
|
ComputeFieldSizeNoTag ( FieldType fieldType, Object value ) : int |
Compute the number of bytes that would be needed to encode a field of arbitrary type, excluding the tag, to the stream.
|
|
ComputeFloatSize ( int fieldNumber, float value ) : int |
Compute the number of bytes that would be needed to encode a float field, including the tag.
|
|
ComputeFloatSizeNoTag ( float value ) : int |
Compute the number of bytes that would be needed to encode a float field, including the tag.
|
|
ComputeGroupSize ( int fieldNumber, IMessage value ) : int |
Compute the number of bytes that would be needed to encode a group field, including the tag.
|
|
ComputeGroupSizeNoTag ( IMessage value ) : int |
Compute the number of bytes that would be needed to encode a group field, including the tag.
|
|
ComputeInt32Size ( int fieldNumber, int value ) : int |
Compute the number of bytes that would be needed to encode an int32 field, including the tag.
|
|
ComputeInt32SizeNoTag ( int value ) : int |
Compute the number of bytes that would be needed to encode an int32 field, including the tag.
|
|
ComputeInt64Size ( int fieldNumber, long value ) : int |
Compute the number of bytes that would be needed to encode an int64 field, including the tag.
|
|
ComputeInt64SizeNoTag ( long value ) : int |
Compute the number of bytes that would be needed to encode an int64 field, including the tag.
|
|
ComputeMessageSetExtensionSize ( int fieldNumber, IMessage value ) : int |
Compute the number of bytes that would be needed to encode a MessageSet extension to the stream. For historical reasons, the wire format differs from normal fields.
|
|
ComputeMessageSize ( int fieldNumber, IMessage value ) : int |
Compute the number of bytes that would be needed to encode an embedded message field, including the tag.
|
|
ComputeMessageSizeNoTag ( IMessage value ) : int |
Compute the number of bytes that would be needed to encode an embedded message field, including the tag.
|
|
ComputeRawMessageSetExtensionSize ( int fieldNumber, ByteString value ) : int |
Compute the number of bytes that would be needed to encode an unparsed MessageSet extension field to the stream. For historical reasons, the wire format differs from normal fields.
|
|
ComputeSFixed32Size ( int fieldNumber, int value ) : int |
Compute the number of bytes that would be needed to encode an sfixed32 field, including the tag.
|
|
ComputeSFixed32SizeNoTag ( int value ) : int |
Compute the number of bytes that would be needed to encode an sfixed32 field, including the tag.
|
|
ComputeSFixed64Size ( int fieldNumber, long value ) : int |
Compute the number of bytes that would be needed to encode an sfixed64 field, including the tag.
|
|
ComputeSFixed64SizeNoTag ( long value ) : int |
Compute the number of bytes that would be needed to encode an sfixed64 field, including the tag.
|
|
ComputeSInt32Size ( int fieldNumber, int value ) : int |
Compute the number of bytes that would be needed to encode an sint32 field, including the tag.
|
|
ComputeSInt32SizeNoTag ( int value ) : int |
Compute the number of bytes that would be needed to encode an sint32 field, including the tag.
|
|
ComputeSInt64Size ( int fieldNumber, long value ) : int |
Compute the number of bytes that would be needed to encode an sint64 field, including the tag.
|
|
ComputeSInt64SizeNoTag ( long value ) : int |
Compute the number of bytes that would be needed to encode an sint64 field, including the tag.
|
|
ComputeStringSize ( int fieldNumber, String value ) : int |
Compute the number of bytes that would be needed to encode a string field, including the tag.
|
|
ComputeStringSizeNoTag ( String value ) : int |
Compute the number of bytes that would be needed to encode a string field, including the tag.
|
|
ComputeTagSize ( int fieldNumber ) : int |
Compute the number of bytes that would be needed to encode a tag.
|
|
ComputeUnknownGroupSize ( int fieldNumber, Google.ProtocolBuffers.UnknownFieldSet value ) : int |
Compute the number of bytes that would be needed to encode a group field represented by an UnknownFieldSet, including the tag.
|
|
ComputeUnknownGroupSizeNoTag ( Google.ProtocolBuffers.UnknownFieldSet value ) : int |
Compute the number of bytes that would be needed to encode a group field represented by an UnknownFieldSet, including the tag.
|
|
CreateInstance ( Stream output ) : |
Creates a new CodedOutputStream which write to the given stream.
|
|
CreateInstance ( Stream output, int bufferSize ) : |
Creates a new CodedOutputStream which write to the given stream and uses the specified buffer size.
|
|
CreateInstance ( byte flatArray ) : |
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.
|
|
CreateInstance ( byte flatArray, int offset, int length ) : |
Creates a new CodedOutputStream that writes directly to the given byte array slice. If more bytes are written than fit in the array, OutOfSpaceException will be thrown.
|
|
Flush ( ) : void | ||
WriteBool ( int fieldNumber, bool value ) : void |
Writes a bool field value, including tag, to the stream.
|
|
WriteBoolNoTag ( bool value ) : void |
Writes a bool field value, without a tag, to the stream.
|
|
WriteBytes ( int fieldNumber, ByteString value ) : void | ||
WriteBytesNoTag ( ByteString value ) : void | ||
WriteDouble ( int fieldNumber, double value ) : void |
Writes a double field value, including tag, to the stream.
|
|
WriteDoubleNoTag ( double value ) : void |
Writes a double field value, including tag, to the stream.
|
|
WriteEnum ( int fieldNumber, int value ) : void | ||
WriteEnumNoTag ( int value ) : void | ||
WriteField ( FieldType fieldType, int fieldNumber, object value ) : void | ||
WriteFieldNoTag ( FieldType fieldType, object value ) : void | ||
WriteFloat ( int fieldNumber, float value ) : void |
Writes a float field value, including tag, to the stream.
|
|
WriteFloatNoTag ( float value ) : void |
Writes a float field value, without a tag, to the stream.
|
|
WriteGroup ( int fieldNumber, IMessage value ) : void |
Writes a group field value, including tag, to the stream.
|
|
WriteGroupNoTag ( IMessage value ) : void |
Writes a group field value, without a tag, to the stream.
|
|
WriteInt32 ( int fieldNumber, int value ) : void |
Writes an int32 field value, including tag, to the stream.
|
|
WriteInt32NoTag ( int value ) : void |
Writes an int32 field value, without a tag, to the stream.
|
|
WriteInt64 ( int fieldNumber, long value ) : void |
Writes an int64 field value, including tag, to the stream.
|
|
WriteInt64NoTag ( long value ) : void |
Writes an int64 field value, without a tag, to the stream.
|
|
WriteMessage ( int fieldNumber, IMessage value ) : void | ||
WriteMessageNoTag ( IMessage value ) : void | ||
WriteMessageSetExtension ( int fieldNumber, IMessage value ) : void | ||
WriteRawByte ( byte value ) : void | ||
WriteRawBytes ( byte value ) : void |
Writes out an array of bytes.
|
|
WriteRawBytes ( byte value, int offset, int length ) : void |
Writes out part of an array of bytes.
|
|
WriteRawMessageSetExtension ( int fieldNumber, ByteString value ) : void | ||
WriteSFixed32 ( int fieldNumber, int value ) : void | ||
WriteSFixed32NoTag ( int value ) : void | ||
WriteSFixed64 ( int fieldNumber, long value ) : void | ||
WriteSFixed64NoTag ( long value ) : void | ||
WriteSInt32 ( int fieldNumber, int value ) : void | ||
WriteSInt32NoTag ( int value ) : void | ||
WriteSInt64 ( int fieldNumber, long value ) : void | ||
WriteSInt64NoTag ( long value ) : void | ||
WriteString ( int fieldNumber, string value ) : void |
Writes a string field value, including tag, to the stream.
|
|
WriteStringNoTag ( string value ) : void |
Writes a string field value, without a tag, to the stream.
|
|
WriteUnknownGroup ( int fieldNumber, Google.ProtocolBuffers.UnknownFieldSet value ) : void |
Method | Description | |
---|---|---|
CodedOutputStream ( Stream output, byte buffer ) : System | ||
CodedOutputStream ( byte buffer, int offset, int length ) : System | ||
ComputeFixed32Size ( int fieldNumber, uint value ) : int | ||
ComputeFixed32SizeNoTag ( uint value ) : int | ||
ComputeFixed64Size ( int fieldNumber, ulong value ) : int | ||
ComputeFixed64SizeNoTag ( ulong value ) : int | ||
ComputeRawVarint32Size ( uint value ) : int | ||
ComputeRawVarint64Size ( ulong value ) : int | ||
ComputeUInt32Size ( int fieldNumber, uint value ) : int | ||
ComputeUInt32SizeNoTag ( uint value ) : int | ||
ComputeUInt64Size ( int fieldNumber, ulong value ) : int | ||
ComputeUInt64SizeNoTag ( ulong value ) : int | ||
EncodeZigZag32 ( int n ) : uint | ||
EncodeZigZag64 ( long n ) : ulong | ||
RefreshBuffer ( ) : void | ||
SlowWriteRawVarint32 ( uint value ) : void | ||
WriteFixed32 ( int fieldNumber, uint value ) : void | ||
WriteFixed32NoTag ( uint value ) : void | ||
WriteFixed64 ( int fieldNumber, ulong value ) : void | ||
WriteFixed64NoTag ( ulong value ) : void | ||
WriteRawByte ( uint value ) : void | ||
WriteRawLittleEndian32 ( uint value ) : void | ||
WriteRawLittleEndian64 ( ulong value ) : void | ||
WriteRawVarint32 ( uint value ) : void | ||
WriteRawVarint64 ( ulong value ) : void | ||
WriteTag ( int fieldNumber, Google.ProtocolBuffers.WireFormat type ) : void | ||
WriteUInt32 ( int fieldNumber, uint value ) : void | ||
WriteUInt32NoTag ( uint value ) : void | ||
WriteUInt64 ( int fieldNumber, ulong value ) : void | ||
WriteUInt64NoTag ( ulong value ) : void |
public static ComputeBoolSize ( int fieldNumber, bool value ) : int | ||
fieldNumber | int | |
value | bool | |
return | int |
public static ComputeBoolSizeNoTag ( bool value ) : int | ||
value | bool | |
return | int |
public static ComputeBytesSize ( int fieldNumber, ByteString value ) : int | ||
fieldNumber | int | |
value | ByteString | |
return | int |
public static ComputeBytesSizeNoTag ( ByteString value ) : int | ||
value | ByteString | |
return | int |
public static ComputeDoubleSize ( int fieldNumber, double value ) : int | ||
fieldNumber | int | |
value | double | |
return | int |
public static ComputeDoubleSizeNoTag ( double value ) : int | ||
value | double | |
return | int |
public static ComputeEnumSize ( int fieldNumber, int value ) : int | ||
fieldNumber | int | |
value | int | |
return | int |
public static ComputeEnumSizeNoTag ( int value ) : int | ||
value | int | |
return | int |
public static ComputeFieldSize ( FieldType fieldType, int fieldNumber, Object value ) : int | ||
fieldType | FieldType | |
fieldNumber | int | |
value | Object | |
return | int |
public static ComputeFieldSizeNoTag ( FieldType fieldType, Object value ) : int | ||
fieldType | FieldType | |
value | Object | |
return | int |
public static ComputeFloatSize ( int fieldNumber, float value ) : int | ||
fieldNumber | int | |
value | float | |
return | int |
public static ComputeFloatSizeNoTag ( float value ) : int | ||
value | float | |
return | int |
public static ComputeGroupSize ( int fieldNumber, IMessage value ) : int | ||
fieldNumber | int | |
value | IMessage | |
return | int |
public static ComputeGroupSizeNoTag ( IMessage value ) : int | ||
value | IMessage | |
return | int |
public static ComputeInt32Size ( int fieldNumber, int value ) : int | ||
fieldNumber | int | |
value | int | |
return | int |
public static ComputeInt32SizeNoTag ( int value ) : int | ||
value | int | |
return | int |
public static ComputeInt64Size ( int fieldNumber, long value ) : int | ||
fieldNumber | int | |
value | long | |
return | int |
public static ComputeInt64SizeNoTag ( long value ) : int | ||
value | long | |
return | int |
public static ComputeMessageSetExtensionSize ( int fieldNumber, IMessage value ) : int | ||
fieldNumber | int | |
value | IMessage | |
return | int |
public static ComputeMessageSize ( int fieldNumber, IMessage value ) : int | ||
fieldNumber | int | |
value | IMessage | |
return | int |
public static ComputeMessageSizeNoTag ( IMessage value ) : int | ||
value | IMessage | |
return | int |
public static ComputeRawMessageSetExtensionSize ( int fieldNumber, ByteString value ) : int | ||
fieldNumber | int | |
value | ByteString | |
return | int |
public static ComputeSFixed32Size ( int fieldNumber, int value ) : int | ||
fieldNumber | int | |
value | int | |
return | int |
public static ComputeSFixed32SizeNoTag ( int value ) : int | ||
value | int | |
return | int |
public static ComputeSFixed64Size ( int fieldNumber, long value ) : int | ||
fieldNumber | int | |
value | long | |
return | int |
public static ComputeSFixed64SizeNoTag ( long value ) : int | ||
value | long | |
return | int |
public static ComputeSInt32Size ( int fieldNumber, int value ) : int | ||
fieldNumber | int | |
value | int | |
return | int |
public static ComputeSInt32SizeNoTag ( int value ) : int | ||
value | int | |
return | int |
public static ComputeSInt64Size ( int fieldNumber, long value ) : int | ||
fieldNumber | int | |
value | long | |
return | int |
public static ComputeSInt64SizeNoTag ( long value ) : int | ||
value | long | |
return | int |
public static ComputeStringSize ( int fieldNumber, String value ) : int | ||
fieldNumber | int | |
value | String | |
return | int |
public static ComputeStringSizeNoTag ( String value ) : int | ||
value | String | |
return | int |
public static ComputeTagSize ( int fieldNumber ) : int | ||
fieldNumber | int | |
return | int |
public static ComputeUnknownGroupSize ( int fieldNumber, Google.ProtocolBuffers.UnknownFieldSet value ) : int | ||
fieldNumber | int | |
value | Google.ProtocolBuffers.UnknownFieldSet | |
return | int |
public static ComputeUnknownGroupSizeNoTag ( Google.ProtocolBuffers.UnknownFieldSet value ) : int | ||
value | Google.ProtocolBuffers.UnknownFieldSet | |
return | int |
public static CreateInstance ( Stream output ) : |
||
output | Stream | |
return |
public static CreateInstance ( Stream output, int bufferSize ) : |
||
output | Stream | |
bufferSize | int | |
return |
public static CreateInstance ( byte flatArray ) : |
||
flatArray | byte | |
return |
public static CreateInstance ( byte flatArray, int offset, int length ) : |
||
flatArray | byte | |
offset | int | |
length | int | |
return |
public WriteBool ( int fieldNumber, bool value ) : void | ||
fieldNumber | int | |
value | bool | |
return | void |
public WriteBytes ( int fieldNumber, ByteString value ) : void | ||
fieldNumber | int | |
value | ByteString | |
return | void |
public WriteBytesNoTag ( ByteString value ) : void | ||
value | ByteString | |
return | void |
public WriteDouble ( int fieldNumber, double value ) : void | ||
fieldNumber | int | |
value | double | |
return | void |
public WriteDoubleNoTag ( double value ) : void | ||
value | double | |
return | void |
public WriteEnum ( int fieldNumber, int value ) : void | ||
fieldNumber | int | |
value | int | |
return | void |
public WriteField ( FieldType fieldType, int fieldNumber, object value ) : void | ||
fieldType | FieldType | |
fieldNumber | int | |
value | object | |
return | void |
public WriteFieldNoTag ( FieldType fieldType, object value ) : void | ||
fieldType | FieldType | |
value | object | |
return | void |
public WriteFloat ( int fieldNumber, float value ) : void | ||
fieldNumber | int | |
value | float | |
return | void |
public WriteFloatNoTag ( float value ) : void | ||
value | float | |
return | void |
public WriteGroup ( int fieldNumber, IMessage value ) : void | ||
fieldNumber | int | |
value | IMessage | |
return | void |
public WriteGroupNoTag ( IMessage value ) : void | ||
value | IMessage | |
return | void |
public WriteInt32 ( int fieldNumber, int value ) : void | ||
fieldNumber | int | |
value | int | |
return | void |
public WriteInt64 ( int fieldNumber, long value ) : void | ||
fieldNumber | int | |
value | long | |
return | void |
public WriteMessage ( int fieldNumber, IMessage value ) : void | ||
fieldNumber | int | |
value | IMessage | |
return | void |
public WriteMessageNoTag ( IMessage value ) : void | ||
value | IMessage | |
return | void |
public WriteMessageSetExtension ( int fieldNumber, IMessage value ) : void | ||
fieldNumber | int | |
value | IMessage | |
return | void |
public WriteRawBytes ( byte value, int offset, int length ) : void | ||
value | byte | |
offset | int | |
length | int | |
return | void |
public WriteRawMessageSetExtension ( int fieldNumber, ByteString value ) : void | ||
fieldNumber | int | |
value | ByteString | |
return | void |
public WriteSFixed32 ( int fieldNumber, int value ) : void | ||
fieldNumber | int | |
value | int | |
return | void |
public WriteSFixed32NoTag ( int value ) : void | ||
value | int | |
return | void |
public WriteSFixed64 ( int fieldNumber, long value ) : void | ||
fieldNumber | int | |
value | long | |
return | void |
public WriteSFixed64NoTag ( long value ) : void | ||
value | long | |
return | void |
public WriteSInt32 ( int fieldNumber, int value ) : void | ||
fieldNumber | int | |
value | int | |
return | void |
public WriteSInt64 ( int fieldNumber, long value ) : void | ||
fieldNumber | int | |
value | long | |
return | void |
public WriteSInt64NoTag ( long value ) : void | ||
value | long | |
return | void |
public WriteString ( int fieldNumber, string value ) : void | ||
fieldNumber | int | |
value | string | |
return | void |
public WriteStringNoTag ( string value ) : void | ||
value | string | |
return | void |
public WriteUnknownGroup ( int fieldNumber, Google.ProtocolBuffers.UnknownFieldSet value ) : void | ||
fieldNumber | int | |
value | Google.ProtocolBuffers.UnknownFieldSet | |
return | void |