RecyclableMemoryStream.GetMemory method
March 12, 2021 · View on GitHub
public Memory<byte> GetMemory(int sizeHint = 0)
Remarks
IMPORTANT: Calling Write(), GetBuffer(), TryGetBuffer(), Seek(), GetLength(), Advance(), or setting Position after calling GetMemory() invalidates the memory.
See Also
- class RecyclableMemoryStream
- namespace Microsoft.IO