예제 #1
0
        /// <summary>
        /// Writes a string field value, without a tag, to the stream.
        /// The data is length-prefixed.
        /// </summary>
        /// <param name="value">The value to write</param>
        public void WriteString(string value)
        {
            var span = new Span <byte>(buffer);

            WritingPrimitives.WriteString(ref span, ref state, value);
        }
예제 #2
0
 /// <summary>
 /// Writes a string field value, without a tag.
 /// The data is length-prefixed.
 /// </summary>
 /// <param name="value">The value to write</param>
 public void WriteString(string value)
 {
     WritingPrimitives.WriteString(ref buffer, ref state, value);
 }