Struct MemoryStreamWriterPool.RentedWriter
- Namespace
- AsmResolver.IO
- Assembly
- AsmResolver.dll
Represents a single instance of a BinaryStreamWriter that is rented by a writer pool.
public ref struct MemoryStreamWriterPool.RentedWriter
- Inherited Members
Properties
Pool
Gets the pool the writer was rented from.
public readonly MemoryStreamWriterPool Pool { get; }
Property Value
Writer
Gets the writer instance.
public BinaryStreamWriter Writer { get; }
Property Value
Methods
Dispose()
Returns the stream writer to the pool.
public void Dispose()
GetData()
Gets the data that was written to the temporary stream.
public byte[] GetData()
Returns
- byte[]
The data
GetSpan()
Gets the span of the underlying buffer that was written to the temporary stream.
public ReadOnlySpan<byte> GetSpan()
Returns
- ReadOnlySpan<byte>
The span