WriteBytes() public method

public WriteBytes ( int fieldNumber, ByteString value ) : void
fieldNumber int
value ByteString
return void
Beispiel #1
0
        /// <summary>
        /// Serializes the field, including the field number, and writes it to
        /// <paramref name="output"/>.
        /// </summary>
        public void WriteTo(int fieldNumber, CodedOutputStream output)
        {
            foreach (ulong value in varintList)
            {
                output.WriteUInt64(fieldNumber, value);
            }
            foreach (uint value in fixed32List)
            {
                output.WriteFixed32(fieldNumber, value);
            }
            foreach (ulong value in fixed64List)
            {
                output.WriteFixed64(fieldNumber, value);
            }
            foreach (ByteString value in lengthDelimitedList)
            {
                output.WriteBytes(fieldNumber, value);
            }
            foreach (UnknownFieldSet value in groupList)
            {
#pragma warning disable 0612
                output.WriteUnknownGroup(fieldNumber, value);
#pragma warning restore 0612
            }
        }