Ejemplo n.º 1
0
        /// <summary>
        /// Writes a bool field value, without a tag, to the stream.
        /// </summary>
        /// <param name="value">The value to write</param>
        public void WriteBool(bool value)
        {
            var span = new Span <byte>(buffer);

            WritingPrimitives.WriteBool(ref span, ref state, value);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Writes a bool field value, without a tag.
 /// </summary>
 /// <param name="value">The value to write</param>
 public void WriteBool(bool value)
 {
     WritingPrimitives.WriteBool(ref buffer, ref state, value);
 }