352 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\roslyn\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);
ILAssembler (8)
ILCompiler.ReadyToRun (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.DataProtection (7)
Microsoft.AspNetCore.Owin (4)
Microsoft.AspNetCore.Server.HttpSys (6)
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.WebUtilities (1)
Microsoft.Build (3)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\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 (12)
src\roslyn\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\roslyn\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\roslyn\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\roslyn\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.CSharp (5)
Microsoft.CodeAnalysis.Extensions.Package (3)
src\roslyn\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\roslyn\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 (5)
src\roslyn\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.DotNet.Cli.Utils (4)
BlockingMemoryStream.cs (4)
39if (_remaining.Array is not null)
44Buffer.BlockCopy(_remaining.Array, _remaining.Offset, buffer, offset, count);
49Buffer.BlockCopy(_remaining.Array, _remaining.Offset, buffer, offset, count);
50_remaining = new ArraySegment<byte>(_remaining.Array, _remaining.Offset + count, _remaining.Count - count);
Microsoft.Extensions.AI.Abstractions (8)
Microsoft.Extensions.AI.Abstractions.Tests (3)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.Caching.Hybrid (3)
Microsoft.Extensions.Caching.Hybrid.Tests (4)
Microsoft.Extensions.Caching.SqlServer (6)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.ServiceDiscovery.Dns (7)
Microsoft.ML.Core (1)
Microsoft.ML.Data (7)
Microsoft.ML.Tokenizers (1)
Microsoft.Private.Windows.Core (2)
NuGet.ProjectModel (1)
Roslyn.Diagnostics.Analyzers (5)
src\roslyn\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.Diagnostics.Process (6)
System.Formats.Asn1 (2)
System.Formats.Nrbf (1)
System.Memory (1)
System.Net.HttpListener (4)
System.Net.Requests (1)
System.Net.Security (3)
System.Net.Sockets (10)
System.Net.WebSockets (4)
System.Net.WebSockets.Client (4)
System.Private.CoreLib (32)
src\runtime\src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.cs (7)
3756return new Span<T>(segment.Array, segment.Offset, segment.Count);
3776return new Span<T>(segment.Array, segment.Offset + start, segment.Count - start);
3812return new Span<T>(segment.Array, segment.Offset + start, length);
3824return new Span<T>(segment.Array, segment.Offset + start, length);
3900public static Memory<T> AsMemory<T>(this ArraySegment<T> segment) => new Memory<T>(segment.Array, segment.Offset, segment.Count);
3918return new Memory<T>(segment.Array, segment.Offset + start, segment.Count - start);
3940return new Memory<T>(segment.Array, segment.Offset + start, length);
System.Private.DataContractSerialization (6)
System.Private.Windows.Core (2)
System.Runtime.InteropServices.JavaScript (12)
System.Security.Cryptography (7)
System.Security.Cryptography.Pkcs (2)
System.ServiceModel.Http (12)
System.ServiceModel.NetFramingBase (7)
System.ServiceModel.Primitives (26)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (6)
238((IXmlBinaryReaderInitializer)xmlReader).SetInput(buffer.Array, buffer.Offset, buffer.Count,
246xmlReader = XmlDictionaryReader.CreateBinaryReader(buffer.Array, buffer.Offset, buffer.Count,
374byte[] buffer = messageData.Array;
434byte[] buffer = messageData.Array;
546message = _messagePatterns.TryCreateMessage(buffer.Array, buffer.Offset, buffer.Count, bufferManager, messageData);
690XmlDictionaryReader xmlDictionaryReader = XmlDictionaryReader.CreateBinaryReader(messageData.Array, messageData.Offset, messageData.Count, XD.Dictionary, XmlDictionaryReaderQuotas.Max, _readerSessionForLogging);
System\ServiceModel\Channels\MtomMessageEncoder.cs (5)
501XmlDictionaryReader xmlDictionaryReader = XmlMtomReader.Create(messageData.Array, messageData.Offset, messageData.Count, MtomMessageEncoderFactory.GetSupportedEncodings(), contentType, XmlDictionaryReaderQuotas.Max, int.MaxValue, null);
619((IXmlMtomReaderInitializer)xmlReader).SetInput(buffer.Array, buffer.Offset, buffer.Count, MtomMessageEncoderFactory.GetSupportedEncodings(), _contentType, Quotas, _messageEncoder.MaxBufferSize, _onClose);
623xmlReader = XmlMtomReader.Create(buffer.Array, buffer.Offset, buffer.Count, MtomMessageEncoderFactory.GetSupportedEncodings(), _contentType, Quotas, _messageEncoder.MaxBufferSize, _onClose);
634((IXmlTextReaderInitializer)xmlReader).SetInput(buffer.Array, buffer.Offset, buffer.Count, TextMessageEncoderFactory.GetEncodingFromContentType(_contentType, _messageEncoder._factory.ContentEncodingMap), Quotas, _onClose);
638xmlReader = XmlDictionaryReader.CreateTextReader(buffer.Array, buffer.Offset, buffer.Count, TextMessageEncoderFactory.GetEncodingFromContentType(_contentType, _messageEncoder._factory.ContentEncodingMap), Quotas, _onClose);
System.Text.Json (14)
System\Text\Json\Document\JsonDocument.Parse.cs (12)
127Debug.Assert(drained.Array is not null);
133drained.Array,
140ArrayPool<byte>.Shared.Return(drained.Array);
160Debug.Assert(drained.Array is not null);
163Buffer.BlockCopy(drained.Array, 0, owned, 0, drained.Count);
167ArrayPool<byte>.Shared.Return(drained.Array);
224Debug.Assert(drained.Array is not null);
230drained.Array,
237ArrayPool<byte>.Shared.Return(drained.Array);
248Debug.Assert(drained.Array is not null);
251Buffer.BlockCopy(drained.Array, 0, owned, 0, drained.Count);
255ArrayPool<byte>.Shared.Return(drained.Array);