Exemplo n.º 1
0
        /// <summary>
        /// Write a byte string, without a tag, to the stream.
        /// The data is length-prefixed.
        /// </summary>
        /// <param name="value">The value to write</param>
        public void WriteBytes(ByteString value)
        {
            var span = new Span <byte>(buffer);

            WritingPrimitives.WriteBytes(ref span, ref state, value);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Write a byte string, without a tag, to the stream.
 /// The data is length-prefixed.
 /// </summary>
 /// <param name="value">The value to write</param>
 public void WriteBytes(ByteString value)
 {
     WritingPrimitives.WriteBytes(ref buffer, ref state, value);
 }