26 references to Span
System.Console (1)
System\IO\ConsoleStream.cs (1)
40int result = Read(new Span<byte>(ref b));
System.Data.Common (1)
System\Data\SQLTypes\SQLBytes.cs (1)
199Read(offset, new Span<byte>(ref b));
System.Formats.Tar (1)
System\Formats\Tar\SubReadStream.cs (1)
131return Read(new Span<byte>(ref b)) == 1 ? b : -1;
System.IO.Compression (2)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (1)
146return Read(new Span<byte>(ref b)) == 1 ? b : -1;
System\IO\Compression\ZipCustomStreams.cs (1)
332return Read(new Span<byte>(ref b)) == 1 ? b : -1;
System.IO.Compression.Brotli (1)
System\IO\Compression\dec\BrotliStream.Decompress.cs (1)
47int bytesRead = Read(new Span<byte>(ref b));
System.Net.Http (3)
System\Net\Http\Headers\HttpHeaders.cs (1)
1115values = new Span<string?>(ref singleValue);
System\Net\Http\HttpBaseStream.cs (1)
42return Read(new Span<byte>(ref b)) == 1 ? b : -1;
System\Net\Http\MultipartContent.cs (1)
487return Read(new Span<byte>(ref b)) == 1 ? b : -1;
System.Net.Primitives (3)
System\Net\IPNetwork.cs (3)
113BaseAddress.TryWriteBytes(MemoryMarshal.AsBytes(new Span<UInt128>(ref baseAddressValue)), out int bytesWritten); 115address.TryWriteBytes(MemoryMarshal.AsBytes(new Span<UInt128>(ref otherAddressValue)), out bytesWritten); 221baseAddress.TryWriteBytes(MemoryMarshal.AsBytes(new Span<UInt128>(ref value)), out int bytesWritten);
System.Net.Quic (1)
System\Net\Quic\QuicStream.Stream.cs (1)
110return Read(new Span<byte>(ref b)) != 0 ? b : -1;
System.Net.Security (2)
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (1)
341Span<byte> span = MemoryMarshal.AsBytes(new Span<MessageField>(ref field));
System\Net\Security\SslStream.cs (1)
766int bytesRead = Read(new Span<byte>(ref oneByte));
System.Private.CoreLib (8)
src\libraries\System.Private.CoreLib\src\System\Guid.cs (2)
440Span<byte> bytes = MemoryMarshal.AsBytes(new Span<GuidResult>(ref result)); 526Span<byte> bytes = MemoryMarshal.AsBytes(new Span<GuidResult>(ref result));
src\libraries\System.Private.CoreLib\src\System\IO\BinaryReader.cs (1)
163charsRead = _decoder.GetChars(charBytes[..numBytes], new Span<char>(ref singleChar), flush: false);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\OSFileStreamStrategy.cs (1)
203return Read(new Span<byte>(ref b)) != 0 ? b : -1;
src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBaseInvoker.cs (2)
78Span<object?> copyOfArgs = new(ref copyOfArg); 81Span<bool> shouldCopyBack = new(ref copyBack);
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (1)
210bytes.CopyTo(MemoryMarshal.AsBytes(new Span<int>(ref _leftoverBytes)));
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
443return Read(new Span<byte>(ref b)) != 0 ? b : -1;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\JsonEncodingStreamWrapper.cs (1)
231if (Read(new Span<byte>(ref b)) == 0)
System.Security.Cryptography (2)
System\Security\Cryptography\HKDF.cs (1)
135var counterSpan = new Span<byte>(ref counter);
System\Security\Cryptography\RandomNumberGenerator.cs (1)
129Span<byte> oneUintBytes = MemoryMarshal.AsBytes(new Span<uint>(ref oneUint));