コード例 #1
0
        /// <summary>
        /// Writes an already-encoded tag.
        /// </summary>
        /// <param name="tag">The encoded tag</param>
        public void WriteTag(uint tag)
        {
            var span = new Span <byte>(buffer);

            WritingPrimitives.WriteTag(ref span, ref state, tag);
        }
コード例 #2
0
 /// <summary>
 /// Writes an already-encoded tag.
 /// </summary>
 /// <param name="tag">The encoded tag</param>
 public void WriteTag(uint tag)
 {
     WritingPrimitives.WriteTag(ref buffer, ref state, tag);
 }
コード例 #3
0
        /// <summary>
        /// Encodes and writes a tag.
        /// </summary>
        /// <param name="fieldNumber">The number of the field to write the tag for</param>
        /// <param name="type">The wire format type of the tag to write</param>
        public void WriteTag(int fieldNumber, WireFormat.WireType type)
        {
            var span = new Span <byte>(buffer);

            WritingPrimitives.WriteTag(ref span, ref state, fieldNumber, type);
        }
コード例 #4
0
 /// <summary>
 /// Encodes and writes a tag.
 /// </summary>
 /// <param name="fieldNumber">The number of the field to write the tag for</param>
 /// <param name="type">The wire format type of the tag to write</param>
 public void WriteTag(int fieldNumber, WireFormat.WireType type)
 {
     WritingPrimitives.WriteTag(ref buffer, ref state, fieldNumber, type);
 }