/// <summary> /// Writes the given five-byte tag directly to the stream. /// </summary> /// <param name="b1">The first byte of the encoded tag</param> /// <param name="b2">The second byte of the encoded tag</param> /// <param name="b3">The third byte of the encoded tag</param> /// <param name="b4">The fourth byte of the encoded tag</param> /// <param name="b5">The fifth byte of the encoded tag</param> public void WriteRawTag(byte b1, byte b2, byte b3, byte b4, byte b5) { var span = new Span <byte>(buffer); WritingPrimitives.WriteRawTag(ref span, ref state, b1, b2, b3, b4, b5); }
/// <summary> /// Writes the given five-byte tag. /// </summary> /// <param name="b1">The first byte of the encoded tag</param> /// <param name="b2">The second byte of the encoded tag</param> /// <param name="b3">The third byte of the encoded tag</param> /// <param name="b4">The fourth byte of the encoded tag</param> /// <param name="b5">The fifth byte of the encoded tag</param> public void WriteRawTag(byte b1, byte b2, byte b3, byte b4, byte b5) { WritingPrimitives.WriteRawTag(ref buffer, ref state, b1, b2, b3, b4, b5); }
/// <summary> /// Writes the given single-byte tag directly to the stream. /// </summary> /// <param name="b1">The encoded tag</param> public void WriteRawTag(byte b1) { var span = new Span <byte>(buffer); WritingPrimitives.WriteRawTag(ref span, ref state, b1); }
/// <summary> /// Writes the given two-byte tag. /// </summary> /// <param name="b1">The first byte of the encoded tag</param> /// <param name="b2">The second byte of the encoded tag</param> public void WriteRawTag(byte b1, byte b2) { WritingPrimitives.WriteRawTag(ref buffer, ref state, b1, b2); }