AdvanceSpan(int)
public void AdvanceSpan(int length) Advance the write position in the current span.
Parameters
lengthint- The number of bytes to advance wirte position by.
public void AdvanceSpan(int length)lengthintpublic void Allocate(int sizeHint)sizeHintintpublic void Commit()public void Dispose()public void EnsureContiguous(int length)length contiguous bytes available to be written. lengthintpublic void Write(scoped ReadOnlySpan<byte> value)valueReadOnlySpan<byte>public void WriteByte(byte value)System.Byte to the output buffer. valuebytepublic void WriteEndBase()public void WriteEndObject()public void WriteFieldHeader(uint fieldId, Type expectedType, Type actualType, WireType wireType)fieldIduintexpectedTypeTypeactualTypeTypewireTypeWireTypepublic void WriteFieldHeaderExpected(uint fieldId, WireType wireType)fieldIduintwireTypeWireTypepublic void WriteInt32(int value)System.Int32 to the output buffer. valueintpublic void WriteInt64(long value)System.Int64 to the output buffer. valuelongpublic void WriteStartObject(uint fieldId, Type expectedType, Type actualType)fieldIduintexpectedTypeTypeactualTypeTypepublic void WriteUInt32(uint value)System.UInt32 to the output buffer. valueuintpublic void WriteUInt64(ulong value)System.UInt64 to the output buffer. valueulongpublic void WriteVarInt16(short value)System.Int16. valueshortpublic void WriteVarInt32(int value)System.Int32. valueintpublic void WriteVarInt64(long value)System.Int64. valuelongpublic void WriteVarInt8(sbyte value)System.SByte. valuesbytepublic void WriteVarUInt16(ushort value)System.UInt16. valueushortpublic void WriteVarUInt32(uint value)System.UInt32 to the output buffer as a variable-width integer. valueuintpublic void WriteVarUInt64(ulong value)System.UInt64 to the output buffer as a variable-width integer. valueulongpublic void WriteVarUInt8(byte value)System.Byte. valuebyte