C# Class Google.ProtocolBuffers.CodedOutputStream

Encodes and writes protocol message fields.
This class contains two kinds of methods: methods that write specific protocol message constructs and field types (e.g. WriteTag and WriteInt32) and methods that write low-level values (e.g. WriteRawVarint32 and WriteRawBytes). If you are writing encoded protocol messages, you should use the former methods, but if you are writing some other format of your own design, use the latter. The names of the former methods are taken from the protocol buffer type names, not .NET types. (Hence WriteFloat instead of WriteSingle, and WriteBool instead of WriteBoolean.)
Mostrar archivo Open project: ayende/dotnet-protobufs Class Usage Examples

Public Properties

Property Type Description
DefaultBufferSize int

Public Methods

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 ) : CodedOutputStream

Creates a new CodedOutputStream which write to the given stream.

CreateInstance ( Stream output, int bufferSize ) : CodedOutputStream

Creates a new CodedOutputStream which write to the given stream and uses the specified buffer size.

CreateInstance ( byte flatArray ) : CodedOutputStream

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 ) : CodedOutputStream

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

Private Methods

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

Method Details

CheckNoSpaceLeft() public method

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.
public CheckNoSpaceLeft ( ) : void
return void

ComputeBoolSize() public static method

Compute the number of bytes that would be needed to encode a bool field, including the tag.
public static ComputeBoolSize ( int fieldNumber, bool value ) : int
fieldNumber int
value bool
return int

ComputeBoolSizeNoTag() public static method

Compute the number of bytes that would be needed to encode a bool field, including the tag.
public static ComputeBoolSizeNoTag ( bool value ) : int
value bool
return int

ComputeBytesSize() public static method

Compute the number of bytes that would be needed to encode a bytes field, including the tag.
public static ComputeBytesSize ( int fieldNumber, ByteString value ) : int
fieldNumber int
value ByteString
return int

ComputeBytesSizeNoTag() public static method

Compute the number of bytes that would be needed to encode a bytes field, including the tag.
public static ComputeBytesSizeNoTag ( ByteString value ) : int
value ByteString
return int

ComputeDoubleSize() public static method

Compute the number of bytes that would be needed to encode a double field, including the tag.
public static ComputeDoubleSize ( int fieldNumber, double value ) : int
fieldNumber int
value double
return int

ComputeDoubleSizeNoTag() public static method

Compute the number of bytes that would be needed to encode a double field, including the tag.
public static ComputeDoubleSizeNoTag ( double value ) : int
value double
return int

ComputeEnumSize() public static method

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.
public static ComputeEnumSize ( int fieldNumber, int value ) : int
fieldNumber int
value int
return int

ComputeEnumSizeNoTag() public static method

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.
public static ComputeEnumSizeNoTag ( int value ) : int
value int
return int

ComputeFieldSize() public static method

Compute the number of bytes that would be needed to encode a field of arbitrary type, including the tag, to the stream.
public static ComputeFieldSize ( FieldType fieldType, int fieldNumber, Object value ) : int
fieldType FieldType
fieldNumber int
value Object
return int

ComputeFieldSizeNoTag() public static method

Compute the number of bytes that would be needed to encode a field of arbitrary type, excluding the tag, to the stream.
public static ComputeFieldSizeNoTag ( FieldType fieldType, Object value ) : int
fieldType FieldType
value Object
return int

ComputeFloatSize() public static method

Compute the number of bytes that would be needed to encode a float field, including the tag.
public static ComputeFloatSize ( int fieldNumber, float value ) : int
fieldNumber int
value float
return int

ComputeFloatSizeNoTag() public static method

Compute the number of bytes that would be needed to encode a float field, including the tag.
public static ComputeFloatSizeNoTag ( float value ) : int
value float
return int

ComputeGroupSize() public static method

Compute the number of bytes that would be needed to encode a group field, including the tag.
public static ComputeGroupSize ( int fieldNumber, IMessage value ) : int
fieldNumber int
value IMessage
return int

ComputeGroupSizeNoTag() public static method

Compute the number of bytes that would be needed to encode a group field, including the tag.
public static ComputeGroupSizeNoTag ( IMessage value ) : int
value IMessage
return int

ComputeInt32Size() public static method

Compute the number of bytes that would be needed to encode an int32 field, including the tag.
public static ComputeInt32Size ( int fieldNumber, int value ) : int
fieldNumber int
value int
return int

ComputeInt32SizeNoTag() public static method

Compute the number of bytes that would be needed to encode an int32 field, including the tag.
public static ComputeInt32SizeNoTag ( int value ) : int
value int
return int

ComputeInt64Size() public static method

Compute the number of bytes that would be needed to encode an int64 field, including the tag.
public static ComputeInt64Size ( int fieldNumber, long value ) : int
fieldNumber int
value long
return int

ComputeInt64SizeNoTag() public static method

Compute the number of bytes that would be needed to encode an int64 field, including the tag.
public static ComputeInt64SizeNoTag ( long value ) : int
value long
return int

ComputeMessageSetExtensionSize() public static method

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.
public static ComputeMessageSetExtensionSize ( int fieldNumber, IMessage value ) : int
fieldNumber int
value IMessage
return int

ComputeMessageSize() public static method

Compute the number of bytes that would be needed to encode an embedded message field, including the tag.
public static ComputeMessageSize ( int fieldNumber, IMessage value ) : int
fieldNumber int
value IMessage
return int

ComputeMessageSizeNoTag() public static method

Compute the number of bytes that would be needed to encode an embedded message field, including the tag.
public static ComputeMessageSizeNoTag ( IMessage value ) : int
value IMessage
return int

ComputeRawMessageSetExtensionSize() public static method

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.
public static ComputeRawMessageSetExtensionSize ( int fieldNumber, ByteString value ) : int
fieldNumber int
value ByteString
return int

ComputeSFixed32Size() public static method

Compute the number of bytes that would be needed to encode an sfixed32 field, including the tag.
public static ComputeSFixed32Size ( int fieldNumber, int value ) : int
fieldNumber int
value int
return int

ComputeSFixed32SizeNoTag() public static method

Compute the number of bytes that would be needed to encode an sfixed32 field, including the tag.
public static ComputeSFixed32SizeNoTag ( int value ) : int
value int
return int

ComputeSFixed64Size() public static method

Compute the number of bytes that would be needed to encode an sfixed64 field, including the tag.
public static ComputeSFixed64Size ( int fieldNumber, long value ) : int
fieldNumber int
value long
return int

ComputeSFixed64SizeNoTag() public static method

Compute the number of bytes that would be needed to encode an sfixed64 field, including the tag.
public static ComputeSFixed64SizeNoTag ( long value ) : int
value long
return int

ComputeSInt32Size() public static method

Compute the number of bytes that would be needed to encode an sint32 field, including the tag.
public static ComputeSInt32Size ( int fieldNumber, int value ) : int
fieldNumber int
value int
return int

ComputeSInt32SizeNoTag() public static method

Compute the number of bytes that would be needed to encode an sint32 field, including the tag.
public static ComputeSInt32SizeNoTag ( int value ) : int
value int
return int

ComputeSInt64Size() public static method

Compute the number of bytes that would be needed to encode an sint64 field, including the tag.
public static ComputeSInt64Size ( int fieldNumber, long value ) : int
fieldNumber int
value long
return int

ComputeSInt64SizeNoTag() public static method

Compute the number of bytes that would be needed to encode an sint64 field, including the tag.
public static ComputeSInt64SizeNoTag ( long value ) : int
value long
return int

ComputeStringSize() public static method

Compute the number of bytes that would be needed to encode a string field, including the tag.
public static ComputeStringSize ( int fieldNumber, String value ) : int
fieldNumber int
value String
return int

ComputeStringSizeNoTag() public static method

Compute the number of bytes that would be needed to encode a string field, including the tag.
public static ComputeStringSizeNoTag ( String value ) : int
value String
return int

ComputeTagSize() public static method

Compute the number of bytes that would be needed to encode a tag.
public static ComputeTagSize ( int fieldNumber ) : int
fieldNumber int
return int

ComputeUnknownGroupSize() public static method

Compute the number of bytes that would be needed to encode a group field represented by an UnknownFieldSet, including the tag.
public static ComputeUnknownGroupSize ( int fieldNumber, Google.ProtocolBuffers.UnknownFieldSet value ) : int
fieldNumber int
value Google.ProtocolBuffers.UnknownFieldSet
return int

ComputeUnknownGroupSizeNoTag() public static method

Compute the number of bytes that would be needed to encode a group field represented by an UnknownFieldSet, including the tag.
public static ComputeUnknownGroupSizeNoTag ( Google.ProtocolBuffers.UnknownFieldSet value ) : int
value Google.ProtocolBuffers.UnknownFieldSet
return int

CreateInstance() public static method

Creates a new CodedOutputStream which write to the given stream.
public static CreateInstance ( Stream output ) : CodedOutputStream
output Stream
return CodedOutputStream

CreateInstance() public static method

Creates a new CodedOutputStream which write to the given stream and uses the specified buffer size.
public static CreateInstance ( Stream output, int bufferSize ) : CodedOutputStream
output Stream
bufferSize int
return CodedOutputStream

CreateInstance() public static method

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.
public static CreateInstance ( byte flatArray ) : CodedOutputStream
flatArray byte
return CodedOutputStream

CreateInstance() public static method

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.
public static CreateInstance ( byte flatArray, int offset, int length ) : CodedOutputStream
flatArray byte
offset int
length int
return CodedOutputStream

Flush() public method

public Flush ( ) : void
return void

WriteBool() public method

Writes a bool field value, including tag, to the stream.
public WriteBool ( int fieldNumber, bool value ) : void
fieldNumber int
value bool
return void

WriteBoolNoTag() public method

Writes a bool field value, without a tag, to the stream.
public WriteBoolNoTag ( bool value ) : void
value bool
return void

WriteBytes() public method

public WriteBytes ( int fieldNumber, ByteString value ) : void
fieldNumber int
value ByteString
return void

WriteBytesNoTag() public method

public WriteBytesNoTag ( ByteString value ) : void
value ByteString
return void

WriteDouble() public method

Writes a double field value, including tag, to the stream.
public WriteDouble ( int fieldNumber, double value ) : void
fieldNumber int
value double
return void

WriteDoubleNoTag() public method

Writes a double field value, including tag, to the stream.
public WriteDoubleNoTag ( double value ) : void
value double
return void

WriteEnum() public method

public WriteEnum ( int fieldNumber, int value ) : void
fieldNumber int
value int
return void

WriteEnumNoTag() public method

public WriteEnumNoTag ( int value ) : void
value int
return void

WriteField() public method

public WriteField ( FieldType fieldType, int fieldNumber, object value ) : void
fieldType FieldType
fieldNumber int
value object
return void

WriteFieldNoTag() public method

public WriteFieldNoTag ( FieldType fieldType, object value ) : void
fieldType FieldType
value object
return void

WriteFloat() public method

Writes a float field value, including tag, to the stream.
public WriteFloat ( int fieldNumber, float value ) : void
fieldNumber int
value float
return void

WriteFloatNoTag() public method

Writes a float field value, without a tag, to the stream.
public WriteFloatNoTag ( float value ) : void
value float
return void

WriteGroup() public method

Writes a group field value, including tag, to the stream.
public WriteGroup ( int fieldNumber, IMessage value ) : void
fieldNumber int
value IMessage
return void

WriteGroupNoTag() public method

Writes a group field value, without a tag, to the stream.
public WriteGroupNoTag ( IMessage value ) : void
value IMessage
return void

WriteInt32() public method

Writes an int32 field value, including tag, to the stream.
public WriteInt32 ( int fieldNumber, int value ) : void
fieldNumber int
value int
return void

WriteInt32NoTag() public method

Writes an int32 field value, without a tag, to the stream.
public WriteInt32NoTag ( int value ) : void
value int
return void

WriteInt64() public method

Writes an int64 field value, including tag, to the stream.
public WriteInt64 ( int fieldNumber, long value ) : void
fieldNumber int
value long
return void

WriteInt64NoTag() public method

Writes an int64 field value, without a tag, to the stream.
public WriteInt64NoTag ( long value ) : void
value long
return void

WriteMessage() public method

public WriteMessage ( int fieldNumber, IMessage value ) : void
fieldNumber int
value IMessage
return void

WriteMessageNoTag() public method

public WriteMessageNoTag ( IMessage value ) : void
value IMessage
return void

WriteMessageSetExtension() public method

public WriteMessageSetExtension ( int fieldNumber, IMessage value ) : void
fieldNumber int
value IMessage
return void

WriteRawByte() public method

public WriteRawByte ( byte value ) : void
value byte
return void

WriteRawBytes() public method

Writes out an array of bytes.
public WriteRawBytes ( byte value ) : void
value byte
return void

WriteRawBytes() public method

Writes out part of an array of bytes.
public WriteRawBytes ( byte value, int offset, int length ) : void
value byte
offset int
length int
return void

WriteRawMessageSetExtension() public method

public WriteRawMessageSetExtension ( int fieldNumber, ByteString value ) : void
fieldNumber int
value ByteString
return void

WriteSFixed32() public method

public WriteSFixed32 ( int fieldNumber, int value ) : void
fieldNumber int
value int
return void

WriteSFixed32NoTag() public method

public WriteSFixed32NoTag ( int value ) : void
value int
return void

WriteSFixed64() public method

public WriteSFixed64 ( int fieldNumber, long value ) : void
fieldNumber int
value long
return void

WriteSFixed64NoTag() public method

public WriteSFixed64NoTag ( long value ) : void
value long
return void

WriteSInt32() public method

public WriteSInt32 ( int fieldNumber, int value ) : void
fieldNumber int
value int
return void

WriteSInt32NoTag() public method

public WriteSInt32NoTag ( int value ) : void
value int
return void

WriteSInt64() public method

public WriteSInt64 ( int fieldNumber, long value ) : void
fieldNumber int
value long
return void

WriteSInt64NoTag() public method

public WriteSInt64NoTag ( long value ) : void
value long
return void

WriteString() public method

Writes a string field value, including tag, to the stream.
public WriteString ( int fieldNumber, string value ) : void
fieldNumber int
value string
return void

WriteStringNoTag() public method

Writes a string field value, without a tag, to the stream.
public WriteStringNoTag ( string value ) : void
value string
return void

WriteUnknownGroup() public method

public WriteUnknownGroup ( int fieldNumber, Google.ProtocolBuffers.UnknownFieldSet value ) : void
fieldNumber int
value Google.ProtocolBuffers.UnknownFieldSet
return void

Property Details

DefaultBufferSize public_oe static_oe property

The buffer size used by CreateInstance(Stream).
public static int DefaultBufferSize
return int