141 references to ReadOnlySpan
Microsoft.AspNetCore.DataProtection (1)
KeyManagement\KeyRingBasedDataProtector.cs (1)
147return new Guid(new ReadOnlySpan<byte>(ptr, sizeof(Guid)));
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\ResponseBody.cs (1)
282SetDataChunkWithPinnedData(chunks, ref chunkIndex, new ReadOnlySpan<byte>((void*)(handle.AddrOfPinnedObject() + buffer.Offset), buffer.Count));
src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (2)
16header = new ReadOnlySpan<byte>(pBytes, byteCount).GetLatin1String(); 20header = new ReadOnlySpan<byte>(pBytes, byteCount).GetAsciiOrUTF8String(Encoding.UTF8);
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (2)
16header = new ReadOnlySpan<byte>(pBytes, byteCount).GetLatin1String(); 20header = new ReadOnlySpan<byte>(pBytes, byteCount).GetAsciiOrUTF8String(Encoding.UTF8);
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\HttpSys\RequestProcessing\HeaderEncoding.cs (2)
16header = new ReadOnlySpan<byte>(pBytes, byteCount).GetLatin1String(); 20header = new ReadOnlySpan<byte>(pBytes, byteCount).GetAsciiOrUTF8String(Encoding.UTF8);
Microsoft.Build.Framework (1)
NativeMethods.cs (1)
1565return MemoryExtensions.SequenceEqual(new ReadOnlySpan<char>(buffer, len), s.AsSpan());
Microsoft.Cci.Extensions (1)
Extensions\CSharp\CSharpCciExtensions.cs (1)
919ReadOnlySpan<byte> actual = new ReadOnlySpan<byte>(blob.CurrentPointer, blob.Length);
Microsoft.CodeAnalysis (4)
Hashing\XxHash128.cs (1)
200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
MetadataReader\PEModule.cs (1)
3999return StringTable.AddSharedUtf8(new ReadOnlySpan<byte>(bytes, byteCount));
Microsoft.CodeAnalysis.CodeStyle (3)
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RoundTripUtil.cs (2)
119rebuildPdbBytes = new ReadOnlySpan<byte>(rebuildPdbReader.MetadataPointer, rebuildPdbReader.MetadataLength).ToArray().ToImmutableArray(); 145var pdbSpan = new ReadOnlySpan<byte>(originalPdbReader!.MetadataPointer, originalPdbReader.MetadataLength);
Microsoft.CodeAnalysis.UnitTests (1)
StringTableTests.cs (1)
91var ptrResult = StringTable.TextEqualsASCII(str, new ReadOnlySpan<byte>(ptr, ascii.Length));
Microsoft.CodeAnalysis.Workspaces (4)
Serialization\SerializerService_Reference.cs (1)
482writer.WriteSpan(new ReadOnlySpan<byte>(reader.MetadataPointer, reader.MetadataLength));
src\Compilers\Core\Portable\Hashing\XxHash128.cs (1)
200current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
src\Compilers\Core\Portable\Hashing\XxHashShared.cs (2)
390new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 391new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
Microsoft.ML.Tokenizers (1)
Utils\StringSpanOrdinalKey.cs (1)
35new ReadOnlySpan<char>(Ptr, Length) :
PresentationCore (2)
System\Windows\Media\PixelFormat.cs (2)
157ReadOnlySpan<byte> pGuidPixelFormat = new(&guidPixelFormat, 15); 158ReadOnlySpan<byte> pGuidBuiltIn = new(&guidWicPixelFormat, 15);
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
297var abiSpan = new ReadOnlySpan<T>(abi.data.ToPointer(), abi.length);
System.Console (1)
System\IO\StdInReader.cs (1)
353AppendExtraBuffer(new ReadOnlySpan<byte>(bufPtr, result));
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Activity.cs (2)
2090return new ActivitySpanId(Convert.ToHexStringLower(new ReadOnlySpan<byte>(&id, sizeof(ulong)))); 2173_hexString = Convert.ToHexStringLower(new ReadOnlySpan<byte>(&id, sizeof(ulong)));
System.Drawing.Common.Tests (3)
DrawingTest.cs (1)
19new ReadOnlySpan<byte>((void*)data.Scan0, data.Stride * data.Height),
System\Drawing\GraphicsTests.cs (2)
2945ReadOnlySpan<byte> bytes = new((byte*)data.Scan0, data.Stride * data.Height); 2959ReadOnlySpan<byte> bytes = new((byte*)data.Scan0, data.Stride * data.Height);
System.Formats.Asn1 (4)
System\Formats\Asn1\AsnCharacterStringEncodings.cs (4)
94return GetByteCount(new ReadOnlySpan<char>(chars, count)); 122new ReadOnlySpan<char>(chars, charCount), 134return GetCharCount(new ReadOnlySpan<byte>(bytes, count)); 157new ReadOnlySpan<byte>(bytes, byteCount),
System.IO.Hashing (4)
System\IO\Hashing\XxHash128.cs (1)
193current = HashToHash128(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
System\IO\Hashing\XxHash3.cs (1)
192current = HashToUInt64(new ReadOnlySpan<byte>(buffer, (int)_state.TotalLength), (long)_state.Seed);
System\IO\Hashing\XxHashShared.cs (2)
381new ReadOnlySpan<byte>(buffer + InternalBufferLengthBytes - catchupSize, catchupSize).CopyTo(new Span<byte>(lastStripe, StripeLengthBytes)); 382new ReadOnlySpan<byte>(buffer, (int)state.BufferedCount).CopyTo(new Span<byte>(lastStripe + catchupSize, (int)state.BufferedCount));
System.IO.Pipes (1)
System\IO\Pipes\PipeStream.cs (1)
121Write(new ReadOnlySpan<byte>(&value, 1));
System.Net.NameResolution (2)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
72new ReadOnlySpan<byte>(other.Address, addressByteCount));
src\libraries\Common\src\System\Net\InteropIPAddressExtensions.Unix.cs (1)
37new ReadOnlySpan<byte>(nativeIPAddress.Address, Interop.Sys.IPv6AddressBytes),
System.Net.NetworkInformation (3)
System\Net\NetworkInformation\IPAddressUtil.cs (1)
37IPAddress ipAddress = new IPAddress(new ReadOnlySpan<byte>(addressInfo->AddressBytes, addressInfo->NumAddressBytes));
System\Net\NetworkInformation\LinuxNetworkInterface.cs (2)
106lni._physicalAddress = new PhysicalAddress(new ReadOnlySpan<byte>(nii->AddressBytes, nii->NumAddressBytes).ToArray()); 116var address = new IPAddress(new ReadOnlySpan<byte>(ai->AddressBytes, ai->NumAddressBytes));
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.RawSocket.cs (2)
112socket.SetRawSocketOption(0, 11, new ReadOnlySpan<byte>(&opt, sizeof(int))); 117socket.SetRawSocketOption(41, 25, new ReadOnlySpan<byte>(&opt, sizeof(int)));
System.Net.Primitives (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
72new ReadOnlySpan<byte>(other.Address, addressByteCount));
System.Net.Quic (2)
System\Net\Quic\Internal\MsQuicTlsSecret.cs (1)
55? new ReadOnlySpan<byte>(_tlsSecrets->ClientRandom, 32)
System\Net\Quic\QuicStream.cs (1)
564new ReadOnlySpan<QUIC_BUFFER>(data.Buffers, (int)data.BufferCount),
System.Net.Security (4)
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs (1)
55new ReadOnlySpan<byte>(_data.ToPointer(), checked((int)_length)) :
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
77return new ReadOnlySpan<byte>((void*)protocol, len);
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (2)
311ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField)); 317ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField));
System.Net.Sockets (5)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.IPAddress.cs (1)
72new ReadOnlySpan<byte>(other.Address, addressByteCount));
src\libraries\Common\src\System\Net\InteropIPAddressExtensions.Unix.cs (1)
37new ReadOnlySpan<byte>(nativeIPAddress.Address, Interop.Sys.IPv6AddressBytes),
System\Net\Sockets\NetworkStream.cs (1)
347Write(new ReadOnlySpan<byte>(&value, 1));
System\Net\Sockets\SocketAsyncContext.Unix.cs (1)
431return SocketPal.TryCompleteSendTo(context._socket, new ReadOnlySpan<byte>(BufferPtr, bufferLength), null, ref bufferIndex, ref Offset, ref Count, Flags, SocketAddress.Span, ref BytesTransferred, out ErrorCode);
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
369foreach (var socketEvent in new ReadOnlySpan<Interop.Sys.SocketEvent>(Buffer, numEvents))
System.Private.CoreLib (38)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.ReadDir.cs (3)
44? new ReadOnlySpan<byte>(Name, new ReadOnlySpan<byte>(Name, NameBufferSize).IndexOf<byte>(0)) 45: new ReadOnlySpan<byte>(Name, NameLength);
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
64return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
954vlb.Append(new ReadOnlySpan<TChar>(p, (int)(digits + MaxUInt32DecDigits - p)));
src\libraries\System.Private.CoreLib\src\Internal\Runtime\InteropServices\ComponentActivator.cs (2)
196ReadOnlySpan<byte> assemblySpan = new ReadOnlySpan<byte>(assembly, (int)assemblyByteLength); 200symbolsSpan = new ReadOnlySpan<byte>(symbols, (int)symbolsByteLength);
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
2852if (!TryFromBase64Chars(new ReadOnlySpan<char>(inputPtr, inputLength), decodedBytes, out int _))
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventDispatcher.cs (1)
182ReadOnlySpan<byte> payload = new ReadOnlySpan<byte>((void*)instanceData.Payload, (int)instanceData.PayloadLength);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventPipeEventProvider.cs (1)
31id = BitConverter.ToUInt64(new ReadOnlySpan<byte>(additionalData, sizeof(ulong)));
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (1)
317span = new ReadOnlySpan<char>(buffer, ICU_ULOC_KEYWORD_AND_VALUES_CAPACITY);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
192outputBuffer.Append(new ReadOnlySpan<TChar>(p, (int)(buffer + 16 - p)));
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
180return BinaryPrimitives.ReadInt32LittleEndian(new ReadOnlySpan<byte>(p, sizeof(int)));
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (1)
92=> new ReadOnlySpan<TUnmanagedElement>(unmanagedValue, numElements);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (1)
93=> new ReadOnlySpan<TUnmanagedElement>(unmanagedValue, numElements);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (1)
204return new ReadOnlySpan<TUnmanagedElement>(_unmanagedArray, numElements);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SpanMarshaller.cs (1)
97=> new ReadOnlySpan<TUnmanagedElement>(unmanaged, numElements);
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
32Initialize(new ReadOnlySpan<char>(value, length));
src\libraries\System.Private.CoreLib\src\System\String.cs (1)
280return enc.GetString(new ReadOnlySpan<byte>(pStart, length));
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.cs (4)
576char[] arrChar = new ReadOnlySpan<char>(chars, count).ToArray(); 703char[] arrChar = new ReadOnlySpan<char>(chars, charCount).ToArray(); 778byte[] arrByte = new ReadOnlySpan<byte>(bytes, count).ToArray(); 852byte[] arrByte = new ReadOnlySpan<byte>(bytes, byteCount).ToArray();
src\libraries\System.Private.CoreLib\src\System\Text\Encoding.Internal.cs (8)
234chars: new ReadOnlySpan<char>(pCharsOriginal, originalCharCount).Slice(charsConsumedSoFar), 263ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 498chars: new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar), 531ReadOnlySpan<char> chars = new ReadOnlySpan<char>(pOriginalChars, originalCharCount).Slice(charsConsumedSoFar); 828bytes: new ReadOnlySpan<byte>(pBytesOriginal, originalByteCount).Slice(bytesConsumedSoFar), 857ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar); 1094bytes: new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar), 1133ReadOnlySpan<byte> bytes = new ReadOnlySpan<byte>(pOriginalBytes, originalByteCount).Slice(bytesConsumedSoFar);
src\System\Reflection\AssemblyName.CoreCLR.cs (1)
80byte[] publicKeyOrToken = new ReadOnlySpan<byte>(pParts->_pPublicKeyOrToken, pParts->_cbPublicKeyOrToken).ToArray();
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
920_blob = new ReadOnlySpan<byte>((void*)attributeBlob.Signature, attributeBlob.Length);
src\System\RuntimeType.CoreCLR.cs (1)
4351=> Encoding.UTF8.GetString(new ReadOnlySpan<byte>(m_pStringHeap, m_StringHeapByteLength));
src\System\StubHelpers.cs (3)
186int end = new ReadOnlySpan<byte>((byte*)cstr, length).IndexOf((byte)0); 226sb.ReplaceBufferUtf8Internal(new ReadOnlySpan<byte>(pBytes, nbBytes)); 460int end = new ReadOnlySpan<char>((char*)nativeHome, length).IndexOf('\0');
src\System\Threading\Mutex.CoreCLR.Unix.cs (1)
115new ReadOnlySpan<byte>(systemCallErrors, SystemCallErrorsBufferSize).IndexOf((byte)'\0');
System.Private.DataContractSerialization (2)
System\Xml\XmlStreamNodeWriter.cs (2)
340new ReadOnlySpan<char>(chars, charCount) 345BinaryPrimitives.ReverseEndianness(new ReadOnlySpan<short>(chars, charCount),
System.Private.Uri (9)
System\PercentEncodingHelper.cs (1)
88if (Rune.DecodeFromUtf8(new ReadOnlySpan<byte>(&temp, bytesLeftInBuffer), out Rune rune, out bytesConsumed) == OperationStatus.Done)
System\Uri.cs (8)
3864newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + start, end - start)); 3874newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + start, end - start)); 3878DomainNameHelper.IsValid(new ReadOnlySpan<char>(pString + start, end - start), iri: false, StaticNotAny(flags, Flags.ImplicitFile), out int domainNameLength)) 3886if (!new ReadOnlySpan<char>(pString + start, domainNameLength).ContainsAnyInRange('A', 'Z')) 3893DomainNameHelper.IsValid(new ReadOnlySpan<char>(pString + start, end - start), iri: true, StaticNotAny(flags, Flags.ImplicitFile), out domainNameLength)) 3912newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + start, end - start)); 3984newHost = string.Concat(newHost, new ReadOnlySpan<char>(pString + startPort, idx - startPort)); 4094string temp = UriHelper.StripBidiControlCharacters(new ReadOnlySpan<char>(pString + start, end - start));
System.Private.Windows.Core (1)
Windows\Win32\System\Com\ComManagedStream.cs (1)
237ReadOnlySpan<byte> buffer = new(pv, checked((int)cb));
System.Private.Windows.GdiPlus (1)
System\Drawing\ImageCodecInfoHelper.cs (1)
51ReadOnlySpan<ImageCodecInfo> codecInfo = new((ImageCodecInfo*)b, (int)numEncoders);
System.Reflection.Metadata (7)
System\Reflection\Internal\MemoryBlocks\AbstractMemoryBlock.cs (1)
43var result = new ReadOnlySpan<byte>(Pointer + start, length).ToImmutableArray();
System\Reflection\Internal\Utilities\MemoryBlock.cs (4)
318ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(Pointer + offset, Length - offset); 340ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(Pointer + startOffset, Length - startOffset); 510return new ReadOnlySpan<byte>(Pointer + offset, byteCount).ToArray(); 521int i = new ReadOnlySpan<byte>(Pointer + start, Length - start).IndexOf(b);
System\Reflection\Metadata\BlobBuilder.cs (1)
669WriteBytesUnchecked(new ReadOnlySpan<byte>(buffer, byteCount));
System\Reflection\Metadata\BlobWriter.cs (1)
147WriteBytes(new ReadOnlySpan<byte>(buffer, byteCount));
System.Reflection.MetadataLoadContext (2)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
115return new ReadOnlySpan<byte>(br.CurrentPointer, br.Length);
System\Reflection\TypeLoading\General\Ecma\MetadataExtensions.cs (1)
87ReadOnlySpan<byte> actual = new ReadOnlySpan<byte>(br.CurrentPointer, br.Length);
System.Resources.Extensions (1)
src\libraries\System.Private.CoreLib\src\System\Resources\ResourceReader.cs (1)
180return BinaryPrimitives.ReadInt32LittleEndian(new ReadOnlySpan<byte>(p, sizeof(int)));
System.Runtime.Numerics (2)
src\libraries\Common\src\System\Number.Formatting.Common.cs (1)
954vlb.Append(new ReadOnlySpan<TChar>(p, (int)(digits + MaxUInt32DecDigits - p)));
System\Number.BigInteger.cs (1)
863BigIntegerToDecChars((Utf16Char*)ptr + span.Length, new ReadOnlySpan<uint>((void*)state.ptr, state.Length), state.digits);
System.Security.Cryptography (2)
Microsoft\Win32\SafeHandles\SafePasswordHandle.cs (1)
102return new ReadOnlySpan<char>((char*)handle, Length);
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
20internal ReadOnlySpan<byte> DangerousKeySpan => new ReadOnlySpan<byte>((void*)handle, _length);
System.Security.Cryptography.ProtectedData (2)
src\libraries\Common\src\Interop\Windows\Crypt32\Interop.DATA_BLOB.cs (1)
35internal unsafe ReadOnlySpan<byte> DangerousAsSpan() => new ReadOnlySpan<byte>((void*)pbData, (int)cbData);
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FormatMessage.cs (1)
64return GetAndTrimString(new ReadOnlySpan<char>((char*)nativeMsgPtr, length));
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
81return GetIndexOfFirstCharToEncode(new ReadOnlySpan<char>(text, textLength)); // performs bounds checking
System.Windows.Forms (2)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
399? GetMultiselectFiles(new((char*)lpOFN->lpstrFile, (int)lpOFN->nMaxFile))
System\Windows\Forms\Rendering\ControlPaint.cs (1)
274ReadOnlySpan<ARGB> colors = new((ARGB*)data.Scan0, width * height);
System.Windows.Forms.Primitives.Tests (2)
Interop\ComCtl32\LVITEMWTests.cs (2)
65ReadOnlySpan<char> sText = new(lvi.pszText, lvi.cchTextMax); 87ReadOnlySpan<char> sText = new(lvi.pszText, lvi.cchTextMax);
System.Windows.Forms.Primitives.TestUtilities (5)
Metafiles\EmfRecord.cs (1)
33public ReadOnlySpan<HGDIOBJ> Handles => new(_lpht, _nHandles);
Metafiles\RecordTypes\EMRPOLY16.cs (1)
37return new(p, checked((int)cpts));
Metafiles\RecordTypes\EMRPOLYPOLY16.cs (2)
62return new(c, checked((int)nPolys)); 83return new ReadOnlySpan<POINTS>(currentPoint, (int)counts[current]);
Metafiles\RecordTypes\EMRTEXT.cs (1)
28return new ReadOnlySpan<char>(b, (int)nChars);
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenRecordService.cs (2)
274previousImageData = new ReadOnlySpan<uint>((void*)lockedBitmaps[previousFrameBufferIndex].data.Scan0, totalLockedPixels); 275currentImageData = new ReadOnlySpan<uint>((void*)lockedBitmaps[currentFrameBufferIndex].data.Scan0, totalLockedPixels);