Writer<TBufferWriter>
struct
Namespace: Orleans.Serialization.Buffers
Provides functionality for writing to an output stream.
public struct Writer<TBufferWriter> where TBufferWriter : System.Buffers.IBufferWriter<byte>Properties
PositionGets the position.SessionGets the serializer session.WritableSpanGets the current writable span.
Methods
AdvanceSpan(int)Advance the write position in the current span.Allocate(int)Allocates buffer space for the specified number of bytes.CommitCommit the currently written buffers.DisposeEnsureContiguous(int)Ensures that there are at leastlengthcontiguous bytes available to be written.Write(ReadOnlySpan<byte>)Writes the specified value.WriteByte(byte)Writes the providedSystem.Byteto the output buffer.WriteEndBaseWrites the end base tag.WriteEndObjectWrites the end object tag.WriteFieldHeader(uint, Type, Type, WireType)Writes the field header.WriteFieldHeaderExpected(uint, WireType)Writes an expected field header value.WriteInt32(int)Writes the providedSystem.Int32to the output buffer.WriteInt64(long)Writes the providedSystem.Int64to the output buffer.WriteStartObject(uint, Type, Type)Writes the start object tag.WriteUInt32(uint)Writes the providedSystem.UInt32to the output buffer.WriteUInt64(ulong)Writes the providedSystem.UInt64to the output buffer.WriteVarInt16(short)Writes a variable-widthSystem.Int16.WriteVarInt32(int)Writes a variable-widthSystem.Int32.WriteVarInt64(long)Writes a variable-widthSystem.Int64.WriteVarInt8(sbyte)Writes a variable-widthSystem.SByte.WriteVarUInt16(ushort)Writes a variable-widthSystem.UInt16.WriteVarUInt32(uint)Writes the providedSystem.UInt32to the output buffer as a variable-width integer.WriteVarUInt64(ulong)Writes the providedSystem.UInt64to the output buffer as a variable-width integer.WriteVarUInt8(byte)Writes a variable-widthSystem.Byte.
Fields
OutputThe output buffer writer.
