System::Buffers::IBufferWriter class

IBufferWriter class

Represents a sink for data, into which a consumer can write data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

template<typename T>class IBufferWriter : public virtual System::Object
ParameterDescription
TThe type of the element held by the writer.

Methods

MethodDescription
virtual Advance(int32_t)Notifies the IBufferWriter implementation that count elements were written to the output.
virtual GetMemory(int32_t)Returns a Memory that can be written to, and is guaranteed to have at least sizeHint elements.
virtual GetSpan(int32_t)Returns a Span that can be written to, and is guaranteed to have at least sizeHint elements.

See Also