/// <summary> /// Writes an already-encoded tag. /// </summary> /// <param name="tag">The encoded tag</param> public void WriteTag(uint tag) { var span = new Span <byte>(buffer); WritingPrimitives.WriteTag(ref span, ref state, tag); }
/// <summary> /// Writes an already-encoded tag. /// </summary> /// <param name="tag">The encoded tag</param> public void WriteTag(uint tag) { WritingPrimitives.WriteTag(ref buffer, ref state, tag); }
/// <summary> /// Encodes and writes a tag. /// </summary> /// <param name="fieldNumber">The number of the field to write the tag for</param> /// <param name="type">The wire format type of the tag to write</param> public void WriteTag(int fieldNumber, WireFormat.WireType type) { var span = new Span <byte>(buffer); WritingPrimitives.WriteTag(ref span, ref state, fieldNumber, type); }
/// <summary> /// Encodes and writes a tag. /// </summary> /// <param name="fieldNumber">The number of the field to write the tag for</param> /// <param name="type">The wire format type of the tag to write</param> public void WriteTag(int fieldNumber, WireFormat.WireType type) { WritingPrimitives.WriteTag(ref buffer, ref state, fieldNumber, type); }