4107 references to Length
aspire (3)
Aspire.Dashboard (4)
Aspire.Hosting (6)
Aspire.Playground.Tests (1)
GenerateDocumentationAndConfigFiles (19)
http2cat (40)
IIS.FunctionalTests (40)
IIS.LongTests (40)
IIS.NewHandler.FunctionalTests (40)
IIS.ShadowCopy.Tests (11)
IISExpress.FunctionalTests (40)
illink (14)
ILLink.RoslynAnalyzer (20)
InMemory.FunctionalTests (11)
Interop.FunctionalTests (1)
KeyManagementSimulator (2)
Metrics (19)
Metrics.Legacy (19)
Microsoft.AspNetCore.Antiforgery (10)
Microsoft.AspNetCore.Components (11)
Microsoft.AspNetCore.Components.Endpoints (10)
Microsoft.AspNetCore.Components.Forms (6)
Microsoft.AspNetCore.Components.QuickGrid (1)
Microsoft.AspNetCore.Components.Server (11)
Microsoft.AspNetCore.Components.Server.Tests (6)
Microsoft.AspNetCore.Components.Web (6)
Microsoft.AspNetCore.DataProtection (24)
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (8)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Http (1)
Microsoft.AspNetCore.Http.Abstractions (15)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Extensions (23)
Microsoft.AspNetCore.HttpLogging (31)
Microsoft.AspNetCore.Identity.FunctionalTests (12)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.OutputCaching (4)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.Razor.Runtime (2)
Microsoft.AspNetCore.Routing (14)
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Microsoft.AspNetCore.Server.HttpSys (22)
Windows.Win32.PInvoke.HTTPAPI.dll.g.cs (2)
423 uint __result = PInvoke.HttpReceiveRequestEntityBody(RequestQueueHandleLocal, RequestId, Flags, (void* )EntityBufferLocal, (uint )EntityBuffer.Length, BytesReturnedLocal, Overlapped);
452 uint __result = PInvoke.HttpReceiveRequestEntityBody(RequestQueueHandleLocal, RequestId, Flags, (void* )EntityBufferLocal, (uint )EntityBuffer.Length, default(uint* ), Overlapped);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (38)
Microsoft.AspNetCore.Server.IIS (26)
Microsoft.AspNetCore.Server.Kestrel.Core (79)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (23)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
Microsoft.AspNetCore.Shared.Tests (100)
Windows.Win32.PInvoke.HTTPAPI.dll.g.cs (18)
250 uint __result = PInvoke.HttpQueryRequestQueueProperty(RequestQueueHandleLocal, Property, (void* )PropertyInformationLocal, (uint )PropertyInformation.Length, default, ReturnLengthLocal, default);
279 uint __result = PInvoke.HttpQueryRequestQueueProperty(RequestQueueHandleLocal, Property, (void* )PropertyInformationLocal, (uint )PropertyInformation.Length, default, default(uint* ), default);
394 uint __result = PInvoke.HttpQueryRequestProperty(RequestQueueHandleLocal, Id, PropertyId, (void* )QualifierLocal, (uint )Qualifier.Length, (void* )OutputLocal, (uint )Output.Length, BytesReturnedLocal, Overlapped);
425 uint __result = PInvoke.HttpQueryRequestProperty(RequestQueueHandleLocal, Id, PropertyId, (void* )QualifierLocal, (uint )Qualifier.Length, (void* )OutputLocal, (uint )Output.Length, default(uint* ), Overlapped);
504 uint __result = PInvoke.HttpReceiveClientCertificate(RequestQueueHandleLocal, ConnectionId, Flags, (winmdroot.Networking.HttpServer.HTTP_SSL_CLIENT_CERT_INFO* )SslClientCertInfoLocal, (uint )SslClientCertInfo.Length, BytesReceivedLocal, Overlapped);
541 uint __result = PInvoke.HttpReceiveClientCertificate(RequestQueueHandleLocal, ConnectionId, Flags, (winmdroot.Networking.HttpServer.HTTP_SSL_CLIENT_CERT_INFO* )SslClientCertInfoLocal, (uint )SslClientCertInfo.Length, default(uint* ), Overlapped);
650 uint __result = PInvoke.HttpQueryServerSessionProperty(ServerSessionId, Property, (void* )PropertyInformationLocal, (uint )PropertyInformation.Length, ReturnLengthLocal);
662 uint __result = PInvoke.HttpQueryServerSessionProperty(ServerSessionId, Property, (void* )PropertyInformationLocal, (uint )PropertyInformation.Length, default(uint* ));
974 uint __result = PInvoke.HttpQueryUrlGroupProperty(UrlGroupId, Property, (void* )PropertyInformationLocal, (uint )PropertyInformation.Length, ReturnLengthLocal);
986 uint __result = PInvoke.HttpQueryUrlGroupProperty(UrlGroupId, Property, (void* )PropertyInformationLocal, (uint )PropertyInformation.Length, default(uint* ));
1068 uint __result = PInvoke.HttpReceiveHttpRequest(RequestQueueHandleLocal, RequestId, Flags, (winmdroot.Networking.HttpServer.HTTP_REQUEST_V2* )RequestBufferLocal, (uint )RequestBuffer.Length, BytesReturnedLocal, Overlapped);
1105 uint __result = PInvoke.HttpReceiveHttpRequest(RequestQueueHandleLocal, RequestId, Flags, (winmdroot.Networking.HttpServer.HTTP_REQUEST_V2* )RequestBufferLocal, (uint )RequestBuffer.Length, default(uint* ), Overlapped);
1180 uint __result = PInvoke.HttpReceiveRequestEntityBody(RequestQueueHandleLocal, RequestId, Flags, (void* )EntityBufferLocal, (uint )EntityBuffer.Length, BytesReturnedLocal, Overlapped);
1209 uint __result = PInvoke.HttpReceiveRequestEntityBody(RequestQueueHandleLocal, RequestId, Flags, (void* )EntityBufferLocal, (uint )EntityBuffer.Length, default(uint* ), Overlapped);
1972 uint __result = PInvoke.HttpReadFragmentFromCache(RequestQueueHandleLocal, UrlPrefixLocal, ByteRange.HasValue ? &ByteRangeLocal : null, (void* )BufferLocal, (uint )Buffer.Length, BytesReadLocal, Overlapped);
2005 uint __result = PInvoke.HttpReadFragmentFromCache(RequestQueueHandleLocal, UrlPrefixLocal, ByteRange.HasValue ? &ByteRangeLocal : null, (void* )BufferLocal, (uint )Buffer.Length, default(uint* ), Overlapped);
2156 uint __result = PInvoke.HttpQueryServiceConfiguration(default, ConfigId, (void* )pInputLocal, (uint )pInput.Length, (void* )pOutputLocal, (uint )pOutput.Length, pReturnLengthLocal, default);
2171 uint __result = PInvoke.HttpQueryServiceConfiguration(default, ConfigId, (void* )pInputLocal, (uint )pInput.Length, (void* )pOutputLocal, (uint )pOutput.Length, default(uint* ), default);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticAssets.Tests (1)
Microsoft.AspNetCore.WebSockets (23)
Microsoft.AspNetCore.WebUtilities (9)
Microsoft.CodeAnalysis (24)
Microsoft.CodeAnalysis.Analyzers (19)
Microsoft.CodeAnalysis.AnalyzerUtilities (19)
Microsoft.CodeAnalysis.BannedApiAnalyzers (19)
Microsoft.CodeAnalysis.CodeStyle (19)
Microsoft.CodeAnalysis.Collections.Package (8)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.Extensions.Package (8)
Microsoft.CodeAnalysis.InteractiveHost (8)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (19)
Microsoft.CodeAnalysis.PublicApiAnalyzers (19)
Microsoft.CodeAnalysis.ResxSourceGenerator (19)
Microsoft.CodeAnalysis.Threading.Package (8)
Microsoft.CodeAnalysis.Workspaces (24)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (8)
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Microsoft.Data.Analysis (32)
Microsoft.Extensions.AI.Abstractions (1)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
Microsoft.Extensions.Compliance.Abstractions (2)
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Compliance.Testing (1)
Microsoft.Extensions.DataIngestion (14)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Identity.Core (12)
Microsoft.Extensions.Logging.Abstractions (14)
Microsoft.Extensions.Logging.Generators (12)
Microsoft.Extensions.ServiceDiscovery.Dns (7)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.ML.Core (10)
Microsoft.ML.Core.Tests (4)
Microsoft.ML.CpuMath (35)
Microsoft.ML.Data (12)
Microsoft.ML.DataView (5)
Microsoft.ML.ImageAnalytics (3)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.StandardTrainers (5)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.ML.Tokenizers (132)
Microsoft.ML.Tokenizers.Tests (21)
Microsoft.ML.Transforms (6)
Microsoft.Net.Http.Headers (2)
Microsoft.Private.Windows.Core (65)
Microsoft.Private.Windows.Polyfills.Tests (1)
PresentationCore (8)
PresentationCore.Tests (6)
System\Windows\Media\Imaging\WriteableBitmap.Tests.cs (6)
101smallRect.Length, tileSize * channels, 0, 0);
105smallRect.Length, tileSize * channels, width - tileSize, 0);
109smallRect.Length, tileSize * channels, (width - tileSize) / 2, (height - tileSize) / 2);
113smallRect.Length, tileSize * channels, 0, height - tileSize);
117smallRect.Length, tileSize * channels, width - tileSize, height - tileSize);
166bigRect.Length * channels, width * channels, 0, 0);
PresentationFramework (3)
ReachFramework (1)
Roslyn.Diagnostics.Analyzers (19)
Shared (2)
System.Collections (1)
System.Collections.Immutable (15)
System.Collections.Specialized (2)
System.Console (20)
System.Data.Common (8)
System.Diagnostics.DiagnosticSource (28)
System.Diagnostics.FileVersionInfo (5)
System.Diagnostics.Process (26)
System.Diagnostics.TextWriterTraceListener (1)
System.DirectoryServices.Protocols (7)
System.Drawing.Common (14)
System.Formats.Asn1 (20)
System.Formats.Cbor (6)
System.Formats.Nrbf (1)
System.Formats.Tar (28)
System.IO.Compression (39)
System\IO\Compression\ZipBlocks.cs (7)
440int bytesRead = stream.ReadAtLeast(blockContents, blockContents.Length, throwOnEndOfStream: false);
519int bytesRead = stream.ReadAtLeast(blockContents, blockContents.Length, throwOnEndOfStream: false);
633Debug.Assert(blockBytes.Length == FieldLengths.FilenameLength + FieldLengths.ExtraFieldLength);
665int bytesRead = stream.ReadAtLeast(blockBytes, blockBytes.Length, throwOnEndOfStream: false);
670bytesRead = stream.ReadAtLeast(blockBytes, blockBytes.Length, throwOnEndOfStream: false);
822Debug.Assert(bytesToRead == collatedHeader[remainingBufferLength..].Length);
962int bytesRead = stream.ReadAtLeast(blockContents, blockContents.Length, throwOnEndOfStream: false);
System.IO.Compression.Brotli (15)
System.IO.FileSystem.Watcher (14)
System.IO.Hashing (19)
System.IO.Packaging (2)
System.IO.Pipelines (2)
System.IO.Pipes (1)
System.IO.Ports (1)
System.Linq (18)
System.Linq.AsyncEnumerable (1)
System.Memory (14)
System.Memory.Data (5)
System.Net.Http (114)
System.Net.HttpListener (7)
System.Net.Mail (29)
System.Net.NameResolution (7)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (7)
81err = Interop.Sys.SetAddressFamily(rawAddress, buffer.Length, (int)family);
106err = Interop.Sys.SetPort(rawAddress, buffer.Length, port);
132err = Interop.Sys.GetIPv6Address(rawAddress, buffer.Length, ipAddress, address.Length, &localScope);
144err = Interop.Sys.SetIPv4Address(rawAddress, buffer.Length, address);
161SetIPv6Address(buffer, rawInput, address.Length, scope);
170err = Interop.Sys.SetIPv6Address(rawAddress, buffer.Length, address, addressLength, scope);
181buffer[0] = (byte)Math.Min(buffer.Length, 255);
System.Net.NetworkInformation (7)
System.Net.Ping (10)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (7)
81err = Interop.Sys.SetAddressFamily(rawAddress, buffer.Length, (int)family);
106err = Interop.Sys.SetPort(rawAddress, buffer.Length, port);
132err = Interop.Sys.GetIPv6Address(rawAddress, buffer.Length, ipAddress, address.Length, &localScope);
144err = Interop.Sys.SetIPv4Address(rawAddress, buffer.Length, address);
161SetIPv6Address(buffer, rawInput, address.Length, scope);
170err = Interop.Sys.SetIPv6Address(rawAddress, buffer.Length, address, addressLength, scope);
181buffer[0] = (byte)Math.Min(buffer.Length, 255);
System.Net.Primitives (20)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (7)
81err = Interop.Sys.SetAddressFamily(rawAddress, buffer.Length, (int)family);
106err = Interop.Sys.SetPort(rawAddress, buffer.Length, port);
132err = Interop.Sys.GetIPv6Address(rawAddress, buffer.Length, ipAddress, address.Length, &localScope);
144err = Interop.Sys.SetIPv4Address(rawAddress, buffer.Length, address);
161SetIPv6Address(buffer, rawInput, address.Length, scope);
170err = Interop.Sys.SetIPv6Address(rawAddress, buffer.Length, address, addressLength, scope);
181buffer[0] = (byte)Math.Min(buffer.Length, 255);
System.Net.Quic (25)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (7)
81err = Interop.Sys.SetAddressFamily(rawAddress, buffer.Length, (int)family);
106err = Interop.Sys.SetPort(rawAddress, buffer.Length, port);
132err = Interop.Sys.GetIPv6Address(rawAddress, buffer.Length, ipAddress, address.Length, &localScope);
144err = Interop.Sys.SetIPv4Address(rawAddress, buffer.Length, address);
161SetIPv6Address(buffer, rawInput, address.Length, scope);
170err = Interop.Sys.SetIPv6Address(rawAddress, buffer.Length, address, addressLength, scope);
181buffer[0] = (byte)Math.Min(buffer.Length, 255);
System.Net.Requests (1)
System.Net.Security (32)
System.Net.ServerSentEvents (3)
System.Net.Sockets (38)
src\libraries\Common\src\System\Net\SocketAddressPal.Unix.cs (7)
81err = Interop.Sys.SetAddressFamily(rawAddress, buffer.Length, (int)family);
106err = Interop.Sys.SetPort(rawAddress, buffer.Length, port);
132err = Interop.Sys.GetIPv6Address(rawAddress, buffer.Length, ipAddress, address.Length, &localScope);
144err = Interop.Sys.SetIPv4Address(rawAddress, buffer.Length, address);
161SetIPv6Address(buffer, rawInput, address.Length, scope);
170err = Interop.Sys.SetIPv6Address(rawAddress, buffer.Length, address, addressLength, scope);
181buffer[0] = (byte)Math.Min(buffer.Length, 255);
System\Net\Sockets\SocketPal.Unix.cs (21)
113received = Interop.Sys.Read(handle, b, buffer.Length);
131buffer.Length,
155Count = (UIntPtr)buffer.Length
158Debug.Assert(socketAddress.Length != 0 || sockAddr == null);
162SocketAddressLen = socketAddress.Length,
414int sockAddrLen = socketAddress.Length;
498Count = (UIntPtr)buffer.Length
501Debug.Assert(socketAddress.Length != 0 || rawSocketAddress == null);
505SocketAddressLen = socketAddress.Length,
531socketAddressLen = socketAddress.Length;
580SocketAddressLen = socketAddress.Length,
603socketAddressLen = socketAddress.Length;
685if (data.Length > 0)
688err = Interop.Sys.Connectx(socket, rawSocketAddress, socketAddress.Length, data, data.Length, tfo ? 1 : 0, &sentBytes);
785else if (buffer.Length == 0)
853else if (buffer.Length == 0)
1686Debug.Assert((uint)optionLength <= optionValue.Length);
1851Interop.Error err = Interop.Sys.Select(readFDs, readFDs.Length, writeFDs, writeFDs.Length, errorFDs, errorFDs.Length, microseconds, maxFd, out triggered);
1894Debug.Assert(buffer.Length == socketList.Count);
System.Net.WebClient (6)
System.Net.WebSockets (16)
System.Numerics.Tensors (81)
System.Private.CoreLib (572)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\ArraySortHelper.cs (66)
125if (keys.Length > 1)
127IntroSort(keys, 2 * (BitOperations.Log2((uint)keys.Length) + 1), comparer);
140int partitionSize = keys.Length;
181Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold);
184int hi = keys.Length - 1;
222int n = keys.Length;
260for (int i = 0; i < keys.Length - 1; i++)
289if (keys.Length > 1)
299if (nanLeft == keys.Length)
306IntroSort(keys, 2 * (BitOperations.Log2((uint)keys.Length) + 1));
416int partitionSize = keys.Length;
460Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold);
464ref T lastRef = ref Unsafe.Add(ref zeroRef, keys.Length - 1);
465ref T middleRef = ref Unsafe.Add(ref zeroRef, (keys.Length - 1) >> 1);
471ref T nextToLastRef = ref Unsafe.Add(ref zeroRef, keys.Length - 2);
511int n = keys.Length;
547for (int i = 0; i < keys.Length - 1; i++)
636Debug.Assert(0 <= i && i < keys.Length && i < values.Length);
637Debug.Assert(0 <= j && j < keys.Length && j < values.Length);
669Debug.Assert(keys.Length == values.Length);
671if (keys.Length > 1)
673IntroSort(keys, values, 2 * (BitOperations.Log2((uint)keys.Length) + 1), comparer);
680Debug.Assert(values.Length == keys.Length);
684int partitionSize = keys.Length;
725Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold);
728int hi = keys.Length - 1;
766int n = keys.Length;
810for (int i = 0; i < keys.Length - 1; i++)
840if (keys.Length > 1)
850if (nanLeft == keys.Length)
858IntroSort(keys, values, 2 * (BitOperations.Log2((uint)keys.Length) + 1));
910Debug.Assert(values.Length == keys.Length);
913int partitionSize = keys.Length;
954Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold);
956int hi = keys.Length - 1;
1001int n = keys.Length;
1041for (int i = 0; i < keys.Length - 1; i++)
1117for (int i = 0; i < keys.Length; i++)
1127if ((uint)i < (uint)values.Length) // check to see if we have values
1194if (keys.Length > 1)
1196IntroSort(keys, 2 * (BitOperations.Log2((uint)keys.Length) + 1), comparer);
1209int partitionSize = keys.Length;
1249Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold);
1252int hi = keys.Length - 1;
1290int n = keys.Length;
1328for (int i = 0; i < keys.Length - 1; i++)
1388Debug.Assert(0 <= i && i < keys.Length && i < values.Length);
1389Debug.Assert(0 <= j && j < keys.Length && j < values.Length);
1407Debug.Assert(keys.Length == values.Length);
1409if (keys.Length > 1)
1411IntroSort(keys, values, 2 * (BitOperations.Log2((uint)keys.Length) + 1), comparer);
1418Debug.Assert(values.Length == keys.Length);
1422int partitionSize = keys.Length;
1462Debug.Assert(keys.Length >= Array.IntrosortSizeThreshold);
1465int hi = keys.Length - 1;
1502int n = keys.Length;
1546for (int i = 0; i < keys.Length - 1; i++)
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (7)
778actualSortKeyLength = Interop.Globalization.GetSortKey(_sortHandle, pSource, source.Length, pDest, destination.Length, options);
784if ((uint)actualSortKeyLength > (uint)destination.Length)
786if (actualSortKeyLength > destination.Length)
891sortKeyLength = Interop.Globalization.GetSortKey(_sortHandle, pSource, source.Length, pSortKey, sortKey.Length, options);
895if (sortKeyLength > sortKey.Length) // slow path for big strings
914sortKeyLength = Interop.Globalization.GetSortKey(_sortHandle, pSource, source.Length, pSortKey, sortKey.Length, options);
920if (sortKeyLength == 0 || sortKeyLength > sortKey.Length) // internal error (0) or a bug (2nd call failed) in ucol_getSortKey
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Icu.cs (6)
60int actualLength = Interop.Globalization.ToAscii(flags, unicode, unicode.Length, destination, destination.Length);
62if (actualLength <= destination.Length)
104int realLen = Interop.Globalization.ToUnicode(flags, ascii, ascii.Length, output, output.Length);
110else if (realLen <= output.Length)
131int actualLength = Interop.Globalization.ToUnicode(flags, ascii, ascii.Length, destination, destination.Length);
133if (actualLength <= destination.Length)
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.Nls.cs (8)
46int length = Interop.Normaliz.IdnToAscii(flags, unicode, unicode.Length, output, output.Length);
51Debug.Assert(length == output.Length);
69if (length > destination.Length)
76int actualLength = Interop.Normaliz.IdnToAscii(flags, unicode, unicode.Length, destination, destination.Length);
120int length = Interop.Normaliz.IdnToUnicode(flags, ascii, ascii.Length, output, output.Length);
125Debug.Assert(length == output.Length);
143if (length > destination.Length)
150int actualLength = Interop.Normaliz.IdnToUnicode(flags, ascii, ascii.Length, destination, destination.Length);
src\libraries\System.Private.CoreLib\src\System\IO\RandomAccess.Unix.cs (5)
35result = Interop.Sys.ReadFromNonblocking(handle, bufPtr, buffer.Length);
40result = Interop.Sys.PRead(handle, bufPtr, buffer.Length, fileOffset);
50result = Interop.Sys.Read(handle, bufPtr, buffer.Length);
203bytesWritten = Interop.Sys.PWriteV(handle, pinnedVectors, left.Length, fileOffset);
213bytesWritten = Interop.Sys.WriteV(handle, pinnedVectors, left.Length);
src\libraries\System.Private.CoreLib\src\System\Text\ASCIIEncoding.cs (8)
326return GetBytesCommon(charsPtr, chars.Length, bytesPtr, bytes.Length);
336int written = GetBytesCommon(charsPtr, chars.Length, bytesPtr, bytes.Length, throwForDestinationOverflow: false);
400int numElementsToConvert = Math.Min(chars.Length, bytes.Length);
430return originalBytesLength - bytes.Length; // total number of bytes written
623return GetCharsCommon(bytesPtr, bytes.Length, charsPtr, chars.Length);
633int written = GetCharsCommon(bytesPtr, bytes.Length, charsPtr, chars.Length, throwForDestinationOverflow: false);
694int numElementsToConvert = Math.Min(bytes.Length, chars.Length);
724return originalCharsLength - chars.Length; // total number of chars written
src\libraries\System.Private.CoreLib\src\System\Text\Decoder.cs (2)
204return GetChars(bytesPtr, bytes.Length, charsPtr, chars.Length, flush);
311Convert(bytesPtr, bytes.Length, charsPtr, chars.Length, flush, out bytesUsed, out charsUsed, out completed);
src\libraries\System.Private.CoreLib\src\System\Text\Encoder.cs (2)
201return GetBytes(charsPtr, chars.Length, bytesPtr, bytes.Length, flush);
310Convert(charsPtr, chars.Length, bytesPtr, bytes.Length, flush, out charsUsed, out bytesUsed, out completed);
src\libraries\System.Private.CoreLib\src\System\Text\Latin1Encoding.cs (5)
238return GetBytesCommon(charsPtr, chars.Length, bytesPtr, bytes.Length);
248int written = GetBytesCommon(charsPtr, chars.Length, bytesPtr, bytes.Length, throwForDestinationOverflow: false);
538return GetCharsCommon(bytesPtr, bytes.Length, charsPtr, chars.Length);
545if (bytes.Length <= chars.Length)
550charsWritten = GetCharsCommon(bytesPtr, bytes.Length, charsPtr, chars.Length);
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (11)
66outputBytesRemaining: destination.Length,
95if (destination.Length <= 2)
157outputCharsRemaining: destination.Length,
252outputCharsRemaining: destination.Length,
289if (destination.Length < bytesConsumedJustNow)
374_success = shouldAppend = destination.Length >= literalLength; // UTF8 encoding never produces fewer bytes than input characters
390_success = shouldAppend = destination.Length >= literalLength; // UTF8 encoding never produces fewer bytes than input characters
408ref MemoryMarshal.GetReference(dest), dest.Length);
689GrowAndAppendFormatted(ref this, value, utf16.Length, out charsWritten, format);
736GrowAndAppendFormatted(ref this, value, utf16.Length, out charsWritten, format);
793if (paddingNeeded <= _destination.Length - _pos)
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (5)
372return GetBytesCommon(charsPtr, chars.Length, bytesPtr, bytes.Length);
382int written = GetBytesCommon(charsPtr, chars.Length, bytesPtr, bytes.Length, throwForDestinationOverflow: false);
571return GetCharsCommon(bytesPtr, bytes.Length, charsPtr, chars.Length);
581int written = GetCharsCommon(bytesPtr, bytes.Length, charsPtr, chars.Length, throwForDestinationOverflow: false);
671return originalCharsLength - chars.Length; // total number of chars written
System.Private.CoreLib.Generators (12)
System.Private.DataContractSerialization (15)
System.Private.Uri (50)
System.Private.Windows.Core (85)
System.Private.Windows.GdiPlus (5)
System.Private.Xml (28)
System.Reflection.Metadata (23)
System.Runtime.Numerics (248)
System\Numerics\BigIntegerCalculator.DivRem.cs (63)
36Debug.Assert(quotient.Length == left.Length);
69Debug.Assert(quotient.Length == left.Length - right.Length + 1);
70Debug.Assert(remainder.Length == left.Length);
90Debug.Assert(quotient.Length == left.Length - right.Length + 1);
117Debug.Assert(remainder.Length == left.Length);
148Debug.Assert(left.Length >= 1);
150Debug.Assert(left.Length >= right.Length);
151Debug.Assert(quotient.Length == left.Length - right.Length + 1
152|| quotient.Length == 0);
155if (right.Length < DivideBurnikelZieglerThreshold || left.Length - right.Length < DivideBurnikelZieglerThreshold)
163Span<nuint> leftCopy = BigInteger.RentedBuffer.Create(left.Length, out BigInteger.RentedBuffer leftCopyBuffer);
166int quotientLength = quotient.Length > 0 ? 0 : left.Length - right.Length + 1;
168Span<nuint> quotientActual = quotient.Length > 0 ? quotient : quotientAllocated;
179Debug.Assert(left.Length >= 1);
181Debug.Assert(left.Length >= right.Length);
183quotient.Length == 0
184|| quotient.Length == left.Length - right.Length + 1
185|| (CompareActual(left.Slice(left.Length - right.Length), right) < 0 && quotient.Length == left.Length - right.Length));
210for (int i = left.Length; i >= right.Length; i--)
213nuint t = (uint)i < (uint)left.Length ? left[i] : 0;
256if ((uint)n < (uint)quotient.Length)
261if ((uint)i < (uint)left.Length)
270Debug.Assert(left.Length >= right.Length);
287Debug.Assert(left.Length >= right.Length);
318Debug.Assert(quotient.Length == left.Length - right.Length + 1);
319Debug.Assert(remainder.Length == left.Length || remainder.Length == 0);
354Debug.Assert(src.Length + sigmaDigit <= bits.Length);
367for (int i = 0; i < bits.Length; i++)
382int t = Math.Max(2, (a.Length + n - 1) / n); // Max(2, Ceil(a.Length/n))
383Debug.Assert(t < a.Length || (t == a.Length && (nint)a[^1] >= 0));
389z.Slice(a.Length - (t - 2) * n).Clear();
392if (quotientUpper.Length < n)
398Debug.Assert(!q.Slice(quotientUpper.Length).ContainsAnyExcept(0u));
399q.Slice(0, quotientUpper.Length).CopyTo(quotientUpper);
424if (remainder.Length != 0)
427remainder.Slice(rt.Length).Clear();
437for (int i = rt.Length - 1; i >= 0; i--)
461Debug.Assert(quotient.Length == right.Length);
462Debug.Assert(remainder.Length >= right.Length + 1);
478if (quotient.Length < left.Length)
480Debug.Assert(quotient.Length + 1 == left.Length);
484DivideCore(left.Slice(0, quotient.Length), right[0], quotient, ref carry);
493if (remainder.Length != 0)
504int quotientLength = Math.Min(left.Length - right.Length + 1, quotient.Length);
509if (r1.Length < remainder.Length)
511remainder.Slice(r1.Length).Clear();
516Debug.Assert(!r1.Slice(remainder.Length).ContainsAnyExcept(0u));
517r1.Slice(0, remainder.Length).CopyTo(remainder);
529Debug.Assert(quotient.Length == right.Length);
530Debug.Assert(remainder.Length >= right.Length + 1);
555Debug.Assert(2 * quotient.Length == right.Length);
556Debug.Assert(remainder.Length >= right.Length + 1);
591Span<nuint> rr = remainder.Slice(0, d.Length + 1);
598Debug.Assert((uint)qi < (uint)quotient.Length);
609Debug.Assert(bits.Length == left.Length + right.Length);
System.Security.Cryptography (330)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.cs (5)
84destination.Length);
89return EvpDigestFinalXOF(ctx, destination, (uint)destination.Length);
94return EvpDigestCurrentXOF(ctx, destination, (uint)destination.Length);
99return EvpDigestXOFOneShot(type, source, source.Length, destination, (uint)destination.Length);
104int ret = EvpDigestSqueeze(ctx, destination, (uint)destination.Length, out bool haveFeature);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EVP.Kem.cs (3)
154int ret = CryptoNative_EvpKemDecapsulate(key, GetExtraHandle(key), ciphertext, ciphertext.Length, sharedSecret, sharedSecret.Length);
184int ret = CryptoNative_EvpKemEncapsulate(key, GetExtraHandle(key), ciphertext, ciphertext.Length, sharedSecret, sharedSecret.Length);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.EvpPkey.EcDsa.cs (1)
34destination.Length);
src\libraries\Common\src\System\Security\Cryptography\RsaPaddingProcessor.cs (22)
125int k = destination.Length;
134Span<byte> mInEM = destination.Slice(destination.Length - source.Length);
135Span<byte> ps = destination.Slice(2, destination.Length - source.Length - 3);
138destination[ps.Length + 2] = 0;
157int spaceRemain = destination.Length - len;
161len = Choose(spaceRemainSign, destination.Length, len);
271if (destination.Length - 11 < tLen)
277int paddingLength = destination.Length - tLen - 3;
303int maxInput = checked(destination.Length - hLen - hLen - 2);
325Span<byte> mDest = db.Slice(db.Length - source.Length);
326Span<byte> ps = db.Slice(hLen, db.Length - hLen - 1 - mDest.Length);
327Span<byte> psEnd = db.Slice(hLen + ps.Length, 1);
349dbMask = CryptoPool.Rent(db.Length);
350dbMaskSpan = new Span<byte>(dbMask, 0, db.Length);
410destination.Slice(0, destination.Length - emLen).Clear();
413Span<byte> em = destination.Slice(destination.Length - emLen, emLen);
557ReadOnlySpan<byte> salt = dbMask.Slice(dbMask.Length - sLen);
595while (writePtr.Length > 0)
601if (writePtr.Length >= hLen)
624tmp.Slice(0, writePtr.Length).CopyTo(writePtr);
637if (a.Length != b.Length)
System\Security\Cryptography\RandomNumberGenerator.cs (22)
59byte[] array = ArrayPool<byte>.Shared.Rent(data.Length);
62GetBytes(array, 0, data.Length);
63new ReadOnlySpan<byte>(array, 0, data.Length).CopyTo(data);
67Array.Clear(array, 0, data.Length);
82byte[] array = ArrayPool<byte>.Shared.Rent(data.Length);
89new ReadOnlySpan<byte>(array, 0, data.Length).CopyTo(data);
93Array.Clear(array, 0, data.Length);
291int n = values.Length;
318int needed = (destination.Length + 1) >>> 1;
323if (destination.Length % 2 != 0)
335needed = destination.Length / 2;
344destination = destination.Slice(remainingRandom.Length * 2);
373if (destination.Length < randomBytes.Length)
375randomBytes = randomBytes.Slice(0, destination.Length);
380for (int i = 0; i < randomBytes.Length; i++)
385destination = destination.Slice(randomBytes.Length);
401if (destination.Length * 2 < randomBytes.Length)
403randomBytes = randomBytes.Slice(0, destination.Length * 2);
411if ((uint)i >= (uint)destination.Length)
431for (int i = 0; i < destination.Length; i++)
System.Security.Cryptography.Cose (5)
System.Security.Cryptography.Pkcs (51)
System.Security.Cryptography.ProtectedData (2)
System.Security.Cryptography.Xml (6)
System.ServiceModel.NetFramingBase (2)
System.Text.Encoding.CodePages (1)
System.Text.Encodings.Web (62)
System.Text.Json (50)
System.Text.Json.SourceGeneration (20)
System.Text.RegularExpressions (49)
System.Text.RegularExpressions.Generator (45)
System.Web.HttpUtility (22)
System.Windows.Forms (16)
System.Windows.Forms.Design (3)
System.Windows.Forms.Primitives (113)
System.Windows.Forms.Primitives.Tests (1)
System.Windows.Forms.Tests (8)
Test.Utilities (19)
Text.Analyzers (19)