Exemple #1
0
        /// <summary>
        /// Writes a group, without a tag, to the stream.
        /// </summary>
        /// <param name="value">The value to write</param>
        public void WriteGroup(IMessage value)
        {
            var span = new Span <byte>(buffer);

            WriteContext.Initialize(ref span, ref state, out WriteContext ctx);
            try
            {
                WritingPrimitivesMessages.WriteGroup(ref ctx, value);
            }
            finally
            {
                ctx.CopyStateTo(this);
            }
        }
 /// <summary>
 /// Writes a group, without a tag, to the stream.
 /// </summary>
 /// <param name="value">The value to write</param>
 public void WriteGroup(IMessage value)
 {
     WritingPrimitivesMessages.WriteGroup(ref this, value);
 }