C# Класс 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.)
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
DefaultBufferSize int

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CheckNoSpaceLeft() публичный Метод

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
Результат void

ComputeBoolSize() публичный статический Метод

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
Результат int

ComputeBoolSizeNoTag() публичный статический Метод

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
Результат int

ComputeBytesSize() публичный статический Метод

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
Результат int

ComputeBytesSizeNoTag() публичный статический Метод

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
Результат int

ComputeDoubleSize() публичный статический Метод

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
Результат int

ComputeDoubleSizeNoTag() публичный статический Метод

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
Результат int

ComputeEnumSize() публичный статический Метод

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
Результат int

ComputeEnumSizeNoTag() публичный статический Метод

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
Результат int

ComputeFieldSize() публичный статический Метод

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
Результат int

ComputeFieldSizeNoTag() публичный статический Метод

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
Результат int

ComputeFloatSize() публичный статический Метод

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
Результат int

ComputeFloatSizeNoTag() публичный статический Метод

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
Результат int

ComputeGroupSize() публичный статический Метод

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
Результат int

ComputeGroupSizeNoTag() публичный статический Метод

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
Результат int

ComputeInt32Size() публичный статический Метод

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
Результат int

ComputeInt32SizeNoTag() публичный статический Метод

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
Результат int

ComputeInt64Size() публичный статический Метод

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
Результат int

ComputeInt64SizeNoTag() публичный статический Метод

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
Результат int

ComputeMessageSetExtensionSize() публичный статический Метод

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
Результат int

ComputeMessageSize() публичный статический Метод

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
Результат int

ComputeMessageSizeNoTag() публичный статический Метод

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
Результат int

ComputeRawMessageSetExtensionSize() публичный статический Метод

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
Результат int

ComputeSFixed32Size() публичный статический Метод

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
Результат int

ComputeSFixed32SizeNoTag() публичный статический Метод

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
Результат int

ComputeSFixed64Size() публичный статический Метод

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
Результат int

ComputeSFixed64SizeNoTag() публичный статический Метод

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
Результат int

ComputeSInt32Size() публичный статический Метод

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
Результат int

ComputeSInt32SizeNoTag() публичный статический Метод

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
Результат int

ComputeSInt64Size() публичный статический Метод

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
Результат int

ComputeSInt64SizeNoTag() публичный статический Метод

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
Результат int

ComputeStringSize() публичный статический Метод

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
Результат int

ComputeStringSizeNoTag() публичный статический Метод

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
Результат int

ComputeTagSize() публичный статический Метод

Compute the number of bytes that would be needed to encode a tag.
public static ComputeTagSize ( int fieldNumber ) : int
fieldNumber int
Результат int

ComputeUnknownGroupSize() публичный статический Метод

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
Результат int

ComputeUnknownGroupSizeNoTag() публичный статический Метод

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
Результат int

CreateInstance() публичный статический Метод

Creates a new CodedOutputStream which write to the given stream.
public static CreateInstance ( Stream output ) : CodedOutputStream
output Stream
Результат CodedOutputStream

CreateInstance() публичный статический Метод

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
Результат CodedOutputStream

CreateInstance() публичный статический Метод

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
Результат CodedOutputStream

CreateInstance() публичный статический Метод

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
Результат CodedOutputStream

Flush() публичный Метод

public Flush ( ) : void
Результат void

WriteBool() публичный Метод

Writes a bool field value, including tag, to the stream.
public WriteBool ( int fieldNumber, bool value ) : void
fieldNumber int
value bool
Результат void

WriteBoolNoTag() публичный Метод

Writes a bool field value, without a tag, to the stream.
public WriteBoolNoTag ( bool value ) : void
value bool
Результат void

WriteBytes() публичный Метод

public WriteBytes ( int fieldNumber, ByteString value ) : void
fieldNumber int
value ByteString
Результат void

WriteBytesNoTag() публичный Метод

public WriteBytesNoTag ( ByteString value ) : void
value ByteString
Результат void

WriteDouble() публичный Метод

Writes a double field value, including tag, to the stream.
public WriteDouble ( int fieldNumber, double value ) : void
fieldNumber int
value double
Результат void

WriteDoubleNoTag() публичный Метод

Writes a double field value, including tag, to the stream.
public WriteDoubleNoTag ( double value ) : void
value double
Результат void

WriteEnum() публичный Метод

public WriteEnum ( int fieldNumber, int value ) : void
fieldNumber int
value int
Результат void

WriteEnumNoTag() публичный Метод

public WriteEnumNoTag ( int value ) : void
value int
Результат void

WriteField() публичный Метод

public WriteField ( FieldType fieldType, int fieldNumber, object value ) : void
fieldType FieldType
fieldNumber int
value object
Результат void

WriteFieldNoTag() публичный Метод

public WriteFieldNoTag ( FieldType fieldType, object value ) : void
fieldType FieldType
value object
Результат void

WriteFloat() публичный Метод

Writes a float field value, including tag, to the stream.
public WriteFloat ( int fieldNumber, float value ) : void
fieldNumber int
value float
Результат void

WriteFloatNoTag() публичный Метод

Writes a float field value, without a tag, to the stream.
public WriteFloatNoTag ( float value ) : void
value float
Результат void

WriteGroup() публичный Метод

Writes a group field value, including tag, to the stream.
public WriteGroup ( int fieldNumber, IMessage value ) : void
fieldNumber int
value IMessage
Результат void

WriteGroupNoTag() публичный Метод

Writes a group field value, without a tag, to the stream.
public WriteGroupNoTag ( IMessage value ) : void
value IMessage
Результат void

WriteInt32() публичный Метод

Writes an int32 field value, including tag, to the stream.
public WriteInt32 ( int fieldNumber, int value ) : void
fieldNumber int
value int
Результат void

WriteInt32NoTag() публичный Метод

Writes an int32 field value, without a tag, to the stream.
public WriteInt32NoTag ( int value ) : void
value int
Результат void

WriteInt64() публичный Метод

Writes an int64 field value, including tag, to the stream.
public WriteInt64 ( int fieldNumber, long value ) : void
fieldNumber int
value long
Результат void

WriteInt64NoTag() публичный Метод

Writes an int64 field value, without a tag, to the stream.
public WriteInt64NoTag ( long value ) : void
value long
Результат void

WriteMessage() публичный Метод

public WriteMessage ( int fieldNumber, IMessage value ) : void
fieldNumber int
value IMessage
Результат void

WriteMessageNoTag() публичный Метод

public WriteMessageNoTag ( IMessage value ) : void
value IMessage
Результат void

WriteMessageSetExtension() публичный Метод

public WriteMessageSetExtension ( int fieldNumber, IMessage value ) : void
fieldNumber int
value IMessage
Результат void

WriteRawByte() публичный Метод

public WriteRawByte ( byte value ) : void
value byte
Результат void

WriteRawBytes() публичный Метод

Writes out an array of bytes.
public WriteRawBytes ( byte value ) : void
value byte
Результат void

WriteRawBytes() публичный Метод

Writes out part of an array of bytes.
public WriteRawBytes ( byte value, int offset, int length ) : void
value byte
offset int
length int
Результат void

WriteRawMessageSetExtension() публичный Метод

public WriteRawMessageSetExtension ( int fieldNumber, ByteString value ) : void
fieldNumber int
value ByteString
Результат void

WriteSFixed32() публичный Метод

public WriteSFixed32 ( int fieldNumber, int value ) : void
fieldNumber int
value int
Результат void

WriteSFixed32NoTag() публичный Метод

public WriteSFixed32NoTag ( int value ) : void
value int
Результат void

WriteSFixed64() публичный Метод

public WriteSFixed64 ( int fieldNumber, long value ) : void
fieldNumber int
value long
Результат void

WriteSFixed64NoTag() публичный Метод

public WriteSFixed64NoTag ( long value ) : void
value long
Результат void

WriteSInt32() публичный Метод

public WriteSInt32 ( int fieldNumber, int value ) : void
fieldNumber int
value int
Результат void

WriteSInt32NoTag() публичный Метод

public WriteSInt32NoTag ( int value ) : void
value int
Результат void

WriteSInt64() публичный Метод

public WriteSInt64 ( int fieldNumber, long value ) : void
fieldNumber int
value long
Результат void

WriteSInt64NoTag() публичный Метод

public WriteSInt64NoTag ( long value ) : void
value long
Результат void

WriteString() публичный Метод

Writes a string field value, including tag, to the stream.
public WriteString ( int fieldNumber, string value ) : void
fieldNumber int
value string
Результат void

WriteStringNoTag() публичный Метод

Writes a string field value, without a tag, to the stream.
public WriteStringNoTag ( string value ) : void
value string
Результат void

WriteUnknownGroup() публичный Метод

public WriteUnknownGroup ( int fieldNumber, Google.ProtocolBuffers.UnknownFieldSet value ) : void
fieldNumber int
value Google.ProtocolBuffers.UnknownFieldSet
Результат void

Описание свойств

DefaultBufferSize публичное статическое свойство

The buffer size used by CreateInstance(Stream).
public static int DefaultBufferSize
Результат int