581 references to Length
Aspire.Dashboard (2)
GenerateDocumentationAndConfigFiles (2)
Microsoft.Agents.AI.ProjectTemplates.Tests (1)
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Forms (2)
Microsoft.AspNetCore.Components.Server (6)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Http.Connections (5)
Microsoft.AspNetCore.Http.Connections.Client (1)
Microsoft.AspNetCore.Http.Connections.Tests (2)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Http.Results (2)
Microsoft.AspNetCore.Identity (9)
Microsoft.AspNetCore.Identity.Test (9)
Microsoft.AspNetCore.OutputCaching (6)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (2)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (6)
163RunningIndex = RunningIndex + Memory.Length
178memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
194memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
210memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
225memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
240memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Shared.Tests (7)
runtime\Http3\VariableLengthIntegerHelperTests.cs (6)
163RunningIndex = RunningIndex + Memory.Length
178memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
194memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
210memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
225memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
240memorySegment1, 0, memorySegment2, memorySegment2.Memory.Length);
Microsoft.AspNetCore.SignalR.Client.Core (4)
Microsoft.AspNetCore.SignalR.Common.Tests (2)
Microsoft.AspNetCore.SignalR.Core (3)
Microsoft.AspNetCore.SignalR.Microbenchmarks (8)
Microsoft.AspNetCore.WebUtilities (8)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (2)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.CodeAnalysis (13)
Microsoft.CodeAnalysis.CSharp (13)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.Data.Analysis (6)
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.OpenAI.Tests (5)
Microsoft.Extensions.AI.Templates.Tests (1)
Microsoft.Extensions.Caching.Hybrid.Tests (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (1)
Microsoft.Extensions.ServiceDiscovery.Dns (9)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (3)
Microsoft.ML.AutoML (1)
Microsoft.ML.Core (12)
Microsoft.ML.Data (10)
Microsoft.ML.ImageAnalytics (2)
Microsoft.ML.Tests (1)
Microsoft.ML.Tokenizers (12)
Microsoft.ML.TorchSharp (1)
Microsoft.ML.Transforms (32)
Sockets.FunctionalTests (2)
System.Drawing.Common.Tests (8)
System.Formats.Asn1 (5)
System.Formats.Cbor (6)
System.IO.Compression (8)
System.IO.Pipelines (4)
System.IO.Pipes (3)
System.IO.Ports (3)
System.Memory (18)
System.Memory.Data (9)
System.Net.Http (63)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (19)
1347buffer.Length > maxSize ?
1646Debug.Assert(headerBytes.Length > 0);
1649int frameCount = ((headerBytes.Length - 1) / FrameHeader.MaxPayloadLength) + 1;
1650int totalSize = headerBytes.Length + (frameCount * FrameHeader.Size);
1664if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.http2Stream.StreamId, $"Started writing. Total header bytes={s.headerBytes.Length}");
1671FrameFlags flags = (remaining.Length == 0 ? FrameFlags.EndHeaders : FrameFlags.None);
1673FrameHeader.WriteTo(span, current.Length, FrameType.Headers, flags, s.http2Stream.StreamId);
1676span = span.Slice(current.Length);
1677if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.http2Stream.StreamId, $"Wrote HEADERS frame. Length={current.Length}, flags={flags}");
1680while (remaining.Length > 0)
1683flags = remaining.Length == 0 ? FrameFlags.EndHeaders : FrameFlags.None;
1685FrameHeader.WriteTo(span, current.Length, FrameType.Continuation, flags, s.http2Stream.StreamId);
1688span = span.Slice(current.Length);
1689if (NetEventSource.Log.IsEnabled()) s.thisRef.Trace(s.http2Stream.StreamId, $"Wrote CONTINUATION frame. Length={current.Length}, flags={flags}");
1716while (remaining.Length > 0)
1719int frameSize = Math.Min(remaining.Length, FrameHeader.MaxPayloadLength);
1726if (finalFlush && remaining.Length == 0)
1739await PerformWriteAsync(FrameHeader.Size + current.Length, (thisRef: this, streamId, current, flush), static (s, writeBuffer) =>
1744FrameHeader.WriteTo(writeBuffer.Span, s.current.Length, FrameType.Data, FrameFlags.None, s.streamId);
System.Net.Mail (5)
System.Net.Quic (5)
System.Net.Security (11)
System.Net.Sockets (1)
System.Net.WebSockets (3)
System.Private.CoreLib (34)
System.Security.Cryptography (66)
System.Security.Cryptography.Cose (7)
System.Security.Cryptography.Pkcs (24)
System.ServiceModel.NetFramingBase (12)
System.ServiceModel.NetTcp (4)
System.ServiceModel.Primitives (1)
System.ServiceModel.UnixDomainSocket (4)
System.Text.Json (9)
System.Text.RegularExpressions (3)
Test.Utilities (2)