324 references to Array
dotnet-svcutil-lib (41)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (5)
259return XmlDictionaryReader.CreateBinaryReader(buffer.Array, buffer.Offset, buffer.Count,
384byte[] buffer = messageData.Array;
444byte[] buffer = messageData.Array;
556message = _messagePatterns.TryCreateMessage(buffer.Array, buffer.Offset, buffer.Count, bufferManager, messageData);
700XmlDictionaryReader xmlDictionaryReader = XmlDictionaryReader.CreateBinaryReader(messageData.Array, messageData.Offset, messageData.Count, XD.Dictionary, XmlDictionaryReaderQuotas.Max, _readerSessionForLogging);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (4)
84this.Connection.Write(messageData.Array, messageData.Offset, messageData.Count, !allowOutputBatching,
101return this.Connection.BeginWrite(messageData.Array, messageData.Offset, messageData.Count,
248await connection.WriteAsync(preamble.Array, preamble.Offset, preamble.Count, true, timeoutHelper.RemainingTime());
287connection.Write(preamble.Array, preamble.Offset, preamble.Count, true, timeoutHelper.RemainingTime());
Extensibility.MessageEncoder.IntegrationTests (4)
GenerateDocumentationAndConfigFiles (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Metrics (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Metrics.Legacy (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.DataProtection (19)
Managed\ManagedAuthenticatedEncryptor.cs (5)
194ReadOnlySpan<byte> keyModifier = protectedPayload.Array!.AsSpan(keyModifierOffset, ivOffset - keyModifierOffset);
245CalculateAndValidateMac(protectedPayload.Array!, ivOffset, macOffset, eofOffset, validationSubkey, validationSubkeyArray);
259var iv = protectedPayload.Array!.AsSpan(ivOffset, _symmetricAlgorithmBlockSizeInBytes).ToArray();
267cryptoStream.Write(protectedPayload.Array!, ciphertextOffset, macOffset - ciphertextOffset);
439cryptoStream.Write(plaintext.Array!, plaintext.Offset, plaintext.Count);
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.Http.Connections.Tests (3)
TestWebSocketConnectionFeature.cs (3)
156Buffer.BlockCopy(_internalBuffer.Buffer, 0, buffer.Array, buffer.Offset, length);
160Buffer.BlockCopy(_internalBuffer.Buffer, 0, buffer.Array, buffer.Offset, length);
200Buffer.BlockCopy(buffer.Array, buffer.Offset, copy, 0, buffer.Count);
Microsoft.AspNetCore.Owin (4)
Microsoft.AspNetCore.Server.HttpSys (6)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.AspNetCore.SpaServices.Extensions (3)
Microsoft.AspNetCore.TestHost (7)
TestWebSocket.cs (7)
143Array.Copy(receiveMessage.Buffer.Array!, receiveMessage.Buffer.Offset, buffer.Array!, buffer.Offset, count);
146receiveMessage.Buffer = new ArraySegment<byte>(receiveMessage.Buffer.Array!, receiveMessage.Buffer.Offset + count, receiveMessage.Buffer.Count - count);
196if (buffer.Array == null)
200if (buffer.Offset < 0 || buffer.Offset > buffer.Array.Length)
204if (buffer.Count < 0 || buffer.Count > buffer.Array.Length - buffer.Offset)
291Array.Copy(message.Buffer.Array!, message.Buffer.Offset, array, 0, message.Buffer.Count);
Microsoft.AspNetCore.WebSockets.Tests (4)
BufferStream.cs (4)
134Buffer.BlockCopy(_topBuffer.Array, _topBuffer.Offset, buffer, offset, actualCount);
135_topBuffer = new ArraySegment<byte>(_topBuffer.Array,
198Buffer.BlockCopy(_topBuffer.Array, _topBuffer.Offset, buffer, offset, actualCount);
199_topBuffer = new ArraySegment<byte>(_topBuffer.Array,
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.Build.Framework (3)
SegmentedArray.cs (3)
66Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
161Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
231index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis (12)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.Analyzers (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.BannedApiAnalyzers (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.CodeStyle (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.Collections.Package (3)
Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.Extensions.Package (3)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.InteractiveHost (3)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (5)
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.Threading.Package (3)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Microsoft.Data.Analysis (1)
Microsoft.DotNet.Build.Tasks.Installers (2)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.Caching.Hybrid (4)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
Microsoft.Extensions.Caching.SqlServer (6)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.ServiceDiscovery.Dns (7)
Microsoft.ML.Core (1)
Microsoft.ML.Data (7)
Roslyn.Diagnostics.Analyzers (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
System.Formats.Asn1 (2)
System.Formats.Nrbf (1)
System.Memory (1)
System.Net.HttpListener (4)
System.Net.WebSockets.Client (4)
System.Private.CoreLib (32)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (7)
3724return new Span<T>(segment.Array, segment.Offset, segment.Count);
3744return new Span<T>(segment.Array, segment.Offset + start, segment.Count - start);
3780return new Span<T>(segment.Array, segment.Offset + start, length);
3792return new Span<T>(segment.Array, segment.Offset + start, length);
3868public static Memory<T> AsMemory<T>(this ArraySegment<T> segment) => new Memory<T>(segment.Array, segment.Offset, segment.Count);
3886return new Memory<T>(segment.Array, segment.Offset + start, segment.Count - start);
3908return new Memory<T>(segment.Array, segment.Offset + start, length);
System.Private.DataContractSerialization (6)
System.Private.Windows.Core (2)
System.Reflection.Metadata (1)
System.Security.Cryptography.Pkcs (2)
System.ServiceModel.NetFramingBase (7)
System.Text.Json (14)
System\Text\Json\Document\JsonDocument.Parse.cs (12)
127Debug.Assert(drained.Array != null);
133drained.Array,
140ArrayPool<byte>.Shared.Return(drained.Array);
160Debug.Assert(drained.Array != null);
163Buffer.BlockCopy(drained.Array, 0, owned, 0, drained.Count);
167ArrayPool<byte>.Shared.Return(drained.Array);
224Debug.Assert(drained.Array != null);
230drained.Array,
237ArrayPool<byte>.Shared.Return(drained.Array);
248Debug.Assert(drained.Array != null);
251Buffer.BlockCopy(drained.Array, 0, owned, 0, drained.Count);
255ArrayPool<byte>.Shared.Return(drained.Array);
Test.Utilities (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);
Text.Analyzers (5)
src\Dependencies\Collections\Segmented\SegmentedArray.cs (3)
74Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: copied, length: segment.Count);
169Array.Copy(segment.Array!, sourceIndex: segment.Offset, destinationArray: destinationArray, destinationIndex: destinationIndex + copied, length: segment.Count);
239index = Array.IndexOf(segment.Array!, value, segment.Offset, segment.Count);