<PackageReference Include="Azure.Storage.Files.DataLake" Version="12.27.0-beta.1" />

Azure.Storage.Shared.PooledMemoryStream

Functions like a readable MemoryStream but uses an ArrayPool to supply the backing memory. This stream support buffering long sizes.
namespace Azure.Storage.Shared { internal class PooledMemoryStream : Stream { public ArrayPool<byte> ArrayPool { get; } public PooledMemoryStream(ArrayPool<byte> arrayPool, int bufferSize, int? initialBufferSize = default(int?)); public void Clear(); } }