16 references to Memory
Microsoft.Data.Analysis (1)
DataFrameBuffer.cs (1)
86var memory = new Memory<byte>(new byte[newCapacity]);
Microsoft.Data.Analysis.Tests (1)
ArrowStringColumnTests.cs (1)
42Memory<byte> dataMemory = new Memory<byte>(bytes);
System.Diagnostics.Process (1)
System\Diagnostics\AsyncStreamReader.cs (1)
97int bytesRead = await _stream.ReadAsync(new Memory<byte>(_byteBuffer), _cts.Token).ConfigureAwait(false);
System.IO.Compression.Brotli (2)
System\IO\Compression\enc\BrotliStream.Compress.cs (2)
164Memory<byte> output = new Memory<byte>(_buffer); 237Memory<byte> output = new Memory<byte>(_buffer);
System.Memory (1)
System\Buffers\ArrayMemoryPool.ArrayMemoryPoolBuffer.cs (1)
24return new Memory<T>(array);
System.Net.Primitives (1)
src\runtime\src\libraries\Common\src\System\Net\SocketAddress.cs (1)
136return new Memory<byte>(_buffer);
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
903int bytesRead = await readStream.ReadAsync(new Memory<byte>(copyBuffer)).ConfigureAwait(false); 1036int bytesRead = await readStream.ReadAsync(new Memory<byte>(buffer)).ConfigureAwait(false);
System.Net.WebSockets.Client (1)
System\Net\WebSockets\BrowserWebSockets\BrowserWebSocket.cs (1)
304Memory<int> responseMemory = new Memory<int>(responseStatus);
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1137int read = await sr.ReadAsync(new Memory<char>(buffer), cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (1)
106while ((bytesRead = await source.ReadAsync(new Memory<byte>(buffer), cancellationToken).ConfigureAwait(false)) != 0)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (2)
1214_byteLen = await tmpStream.ReadAsync(new Memory<byte>(tmpByteBuffer), cancellationToken).ConfigureAwait(false); 1408_byteLen = await tmpStream.ReadAsync(new Memory<byte>(tmpByteBuffer), cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Memory.cs (1)
176public static implicit operator Memory<T>(T[]? array) => new Memory<T>(array);
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (1)
3830public static Memory<T> AsMemory<T>(this T[]? array) => new Memory<T>(array);