369 references to Buffer
dotnet-svcutil-lib (64)
FrameworkFork\Microsoft.Xml\Xml\ByteStack.cs (1)
41Buffer.BlockCopy(_stack, 0, newstack, 0, _top);
FrameworkFork\Microsoft.Xml\Xml\Core\IncrementalReadDecoders.cs (1)
82Buffer.BlockCopy(chars, startPos * 2, _buffer, _curIndex * 2, copyCount * 2);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextReaderImpl.cs (2)
9863Buffer.BlockCopy(src, srcOffset * sizeof(char), dst, dstOffset * sizeof(char), count * sizeof(char)); 9868Buffer.BlockCopy(src, srcOffset, dst, dstOffset, count);
FrameworkFork\Microsoft.Xml\Xml\Core\XmlUtf8RawTextWriter.cs (1)
133Buffer.BlockCopy(bom, 0, bufBytes, 1, bom.Length);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (1)
530Buffer.BlockCopy(block, 0, result, offset, currentSize);
FrameworkFork\Microsoft.Xml\Xml\XmlEncoding.cs (2)
89Buffer.BlockCopy(bytes, byteIndex, chars, charIndex * CharSize, byteCount); 153Buffer.BlockCopy(bytes, byteIndex, chars, charIndex * CharSize, (int)(byteCount & ~0x1));
FrameworkFork\System.Runtime.Serialization\System\Xml\EncodingStreamWrapper.cs (1)
646Buffer.BlockCopy(_bytes, _byteOffset, buffer, offset, count);
FrameworkFork\System.Runtime.Serialization\System\Xml\ValueHandle.cs (1)
458Buffer.BlockCopy(buffer, 0, newBuffer, 0, actualLength);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (1)
1480Buffer.BlockCopy(buffer, offset, _trailBytes, _trailByteCount, count);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBinaryWriter.cs (1)
893Buffer.BlockCopy(guid.ToByteArray(), 0, buffer, offset + 1, 16);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBufferReader.cs (7)
226System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 254System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 258System.Buffer.BlockCopy(_buffer, _offset, _buffer, _offset + count, _offsetMax - _offset); 260System.Buffer.BlockCopy(buffer, offset, _buffer, _offset, count); 275System.Buffer.BlockCopy(_buffer, _offset, _buffer, windowOffset, _offsetMax - _offset); 1138System.Buffer.BlockCopy(_buffer, offset, _guid, 0, _guid.Length); 1144System.Buffer.BlockCopy(_buffer, srcOffset, buffer, dstOffset, count);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlConverter.cs (2)
708Buffer.BlockCopy(chars, offset + MaxInt32Chars - count, chars, offset, count); 715Buffer.BlockCopy(chars, offset + MaxInt64Chars - count, chars, offset, count);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionaryReader.cs (2)
431Buffer.BlockCopy(buffers[i], 0, buffer, offset, buffers[i].Length); 434Buffer.BlockCopy(buffers[bufferCount - 1], 0, buffer, offset, totalRead - offset);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlStreamNodeWriter.cs (2)
239Buffer.BlockCopy(byteBuffer, byteOffset, buffer, offset, byteCount); 306Buffer.BlockCopy(chars, charOffset, buffer, offset, charCount);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\BufferedOutputStream.cs (4)
205Buffer.BlockCopy(chunk, 0, buffer, offset, chunk.Length); 208Buffer.BlockCopy(_currentChunk, 0, buffer, offset, _currentChunkSize); 259Buffer.BlockCopy(buffer, offset, _currentChunk, _currentChunkSize, remainingSizeInChunk); 270Buffer.BlockCopy(buffer, offset, _currentChunk, _currentChunkSize, size);
FrameworkFork\System.ServiceModel\System\IdentityModel\SecurityUtils.cs (1)
86Buffer.BlockCopy(buffer, offset, copy, 0, len);
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SymmetricKey.cs (2)
37Buffer.BlockCopy(symmetricKey, 0, _symmetricKey, 0, symmetricKey.Length); 97Buffer.BlockCopy(_symmetricKey, 0, local, 0, _symmetricKey.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (3)
411Buffer.BlockCopy(buffer, messageData.Offset, newBuffer, messageData.Offset, messageData.Count); 416Buffer.BlockCopy(buffer, messageData.Offset, buffer, messageData.Offset + dictionarySize, messageData.Count); 1438Buffer.BlockCopy(s_bodyFragment, 0, buffer, offset, s_bodyFragment.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedConnection.cs (2)
156Buffer.BlockCopy(buffer, offset, _writeBuffer, _pendingWriteSize, size); 212Buffer.BlockCopy(buffer, offset, _writeBuffer, _pendingWriteSize, copySize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (1)
507Buffer.BlockCopy(array, offset, _buffer, _writePos, count);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\Connection.cs (5)
141Buffer.BlockCopy(tempBuffer, _preReadOffset, _preReadData, 0, _preReadCount); 142Buffer.BlockCopy(initialData, initialOffset, _preReadData, _preReadCount, initialSize); 161Buffer.BlockCopy(_preReadData, _preReadOffset, buffer, offset, bytesToCopy); 177Buffer.BlockCopy(_preReadData, _preReadOffset, AsyncReadBuffer, offset, bytesToCopy); 849Buffer.BlockCopy(connection.AsyncReadBuffer, 0, buffer, offset, ackBytesRead);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingChannels.cs (2)
209Buffer.BlockCopy(ClientDuplexEncoder.ModeBytes, 0, startBytes, 0, ClientDuplexEncoder.ModeBytes.Length); 213Buffer.BlockCopy(ClientDuplexEncoder.PreambleEndBytes, 0, startBytes, preambleEndOffset, ClientDuplexEncoder.PreambleEndBytes.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingDecoders.cs (1)
155Buffer.BlockCopy(buffer, offset, _encodedBytes, _encodedSize - _bytesNeeded, bytesConsumed);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\FramingEncoders.cs (4)
214Buffer.BlockCopy(via.EncodedBytes, 0, buffer, offset, via.EncodedBytes.Length); 215Buffer.BlockCopy(contentType.EncodedBytes, 0, buffer, offset + via.EncodedBytes.Length, contentType.EncodedBytes.Length); 348Buffer.BlockCopy(via.EncodedBytes, 0, buffer, offset, via.EncodedBytes.Length); 349Buffer.BlockCopy(contentType.EncodedBytes, 0, buffer, offset + via.EncodedBytes.Length, contentType.EncodedBytes.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoder.cs (1)
83Buffer.BlockCopy(buffer, 0, temp, 0, offset);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ProducerConsumerStream.cs (1)
274Buffer.BlockCopy(srcBuffer, srcOffset, _buffer, _offset, bytesToCopy);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\SessionConnectionReader.cs (1)
352System.Buffer.BlockCopy(buffer, offset, EnvelopeBuffer, EnvelopeOffset, bytesRead);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (3)
599Buffer.BlockCopy(internalBuffer, 0, newBuffer, 0, receivedByteCount); 624Buffer.BlockCopy(internalBuffer, 0, buffer, 0, receivedByteCount); 1250Buffer.BlockCopy(_initialReadBuffer.Array, _initialReadBuffer.Offset, buffer, offset, bytesToCopy);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\DataProtectionSecurityStateEncoder.cs (2)
35Buffer.BlockCopy(entropy, 0, _entropy, 0, entropy.Length); 53Buffer.BlockCopy(_entropy, 0, result, 0, _entropy.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityUtils.cs (3)
454Buffer.BlockCopy(buffers[i], 0, buffer, offset, buffers[i].Length); 457Buffer.BlockCopy(buffers[bufferCount - 1], 0, buffer, offset, totalRead - offset); 853Buffer.BlockCopy(buffer, 0, copy, 0, buffer.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\BinarySecretSecurityToken.cs (1)
53Buffer.BlockCopy(key, 0, _key, 0, key.Length);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (2)
229Buffer.BlockCopy(_key, 0, retval, 0, _key.Length); 272Buffer.BlockCopy(key, 0, _key, 0, key.Length);
http2cat (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
IIS.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
IIS.LongTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
IIS.NewHandler.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
IIS.NewShim.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
IISExpress.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
Microsoft.AspNetCore.Components.Server (4)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
303Buffer.BlockCopy(buffer, offset, _currentSegment, position, count);
src\submodules\MessagePack-CSharp\src\MessagePack.UnityClient\Assets\Scripts\MessagePack\MessagePackWriter.cs (3)
1307Buffer.MemoryCopy(source, p, sourceBytesToCopy, sourceBytesToCopy); 1308Buffer.MemoryCopy(p, destination, destinationSizeInBytes, sourceBytesToCopy); 1318Buffer.MemoryCopy(source, destination, destinationSizeInBytes, sourceBytesToCopy);
Microsoft.AspNetCore.Cryptography.Internal (2)
UnsafeBufferUtil.cs (2)
116Buffer.MemoryCopy(from, to, (ulong)byteCount, (ulong)byteCount); 122Buffer.MemoryCopy(from, to, byteCount, byteCount);
Microsoft.AspNetCore.Cryptography.KeyDerivation (2)
PBKDF2\ManagedPbkdf2Provider.cs (2)
33Buffer.BlockCopy(salt, 0, saltWithBlockIndex, 0, salt.Length); 59Buffer.BlockCopy(T_blockIndex, 0, retVal, numBytesWritten, numBytesToCopy);
Microsoft.AspNetCore.DataProtection (17)
ArraySegmentExtensions.cs (1)
19Buffer.BlockCopy(arraySegment.Array!, arraySegment.Offset, retVal, 0, retVal.Length);
AuthenticatedEncryption\AuthenticatedEncryptorExtensions.cs (1)
30Buffer.BlockCopy(temp, 0, retVal, checked((int)preBufferSize), temp.Length);
Cng\CbcAuthenticatedEncryptor.cs (1)
272Buffer.BlockCopy(decryptedPayload, 0, resizedDecryptedPayload, 0, resizedDecryptedPayload.Length);
Managed\AesGcmAuthenticatedEncryptor.cs (2)
173Buffer.BlockCopy(keyModifier, 0, retVal, (int)preBufferSize, keyModifier.Length); 174Buffer.BlockCopy(nonceBytes, 0, retVal, (int)preBufferSize + keyModifier.Length, nonceBytes.Length);
Managed\ManagedAuthenticatedEncryptor.cs (7)
119Buffer.BlockCopy(ciphertext, 0, retVal, idx, ciphertext.Length); 130Buffer.BlockCopy(digest, 0, retVal, idx, digest.Length); 191Buffer.BlockCopy(protectedPayload.Array!, ivOffset, iv, 0, iv.Length); 217Buffer.BlockCopy(derivedKeysBuffer, 0, decryptionSubkey, 0, decryptionSubkey.Length); 218Buffer.BlockCopy(derivedKeysBuffer, decryptionSubkey.Length, validationSubkey, 0, validationSubkey.Length); 326Buffer.BlockCopy(derivedKeysBuffer, 0, encryptionSubkey, 0, encryptionSubkey.Length); 327Buffer.BlockCopy(derivedKeysBuffer, encryptionSubkey.Length, validationSubkey, 0, validationSubkey.Length);
SP800_108\ManagedSP800_108_CTR_HMACSHA512.cs (5)
32Buffer.BlockCopy(label.Array!, label.Offset, prfInput, sizeof(uint), label.Count); 33Buffer.BlockCopy(context.Array!, context.Offset, prfInput, sizeof(int) + label.Count + 1, context.Count); 48Buffer.BlockCopy(prfOutput, 0, output.Array!, outputOffset, numBytesToCopyThisIteration); 61Buffer.BlockCopy(contextHeader, 0, combinedContext, 0, contextHeader.Length); 62Buffer.BlockCopy(context.Array!, context.Offset, combinedContext, contextHeader.Length, context.Count);
Microsoft.AspNetCore.DataProtection.Extensions (2)
TimeLimitedDataProtector.cs (2)
55Buffer.BlockCopy(plaintext, 0, plaintextWithHeader, 8, plaintext.Length); 92Buffer.BlockCopy(plaintextWithHeader, 8, retVal, 0, retVal.Length);
Microsoft.AspNetCore.DataProtection.Tests (2)
SP800_108\SP800_108Tests.cs (2)
161Buffer.BlockCopy(label, 0, labelSegment.Array, labelSegment.Offset, labelSegment.Count); 163Buffer.BlockCopy(context, 0, contextSegment.Array, contextSegment.Offset, contextSegment.Count);
Microsoft.AspNetCore.Http.Connections (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
303Buffer.BlockCopy(buffer, offset, _currentSegment, position, count);
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.Identity.FunctionalTests (1)
src\Identity\Extensions.Core\src\Rfc6238AuthenticationService.cs (1)
74Buffer.BlockCopy(modifierBytes, 0, combined, input.Length, modifierBytes.Length);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (16)
XmlDataContractSerializerInputFormatterTest.cs (8)
486Buffer.BlockCopy(inpStart, 0, contentBytes, 0, inpStart.Length); 487Buffer.BlockCopy(inp, 0, contentBytes, inpStart.Length, inp.Length); 488Buffer.BlockCopy(inpEnd, 0, contentBytes, inpStart.Length + inp.Length, inpEnd.Length); 541Buffer.BlockCopy(inputStart, 0, contentBytes, 0, inputStart.Length); 542Buffer.BlockCopy(bom, 0, contentBytes, inputStart.Length, bom.Length); 543Buffer.BlockCopy(inputEnd, 0, contentBytes, inputStart.Length + bom.Length, inputEnd.Length); 555Buffer.BlockCopy(sampleStringBytes, 0, expectedBytes, 0, sampleStringBytes.Length); 556Buffer.BlockCopy(bom, 0, expectedBytes, sampleStringBytes.Length, bom.Length);
XmlSerializerInputFormatterTest.cs (8)
506Buffer.BlockCopy(inpStart, 0, contentBytes, 0, inpStart.Length); 507Buffer.BlockCopy(inp, 0, contentBytes, inpStart.Length, inp.Length); 508Buffer.BlockCopy(inpEnd, 0, contentBytes, inpStart.Length + inp.Length, inpEnd.Length); 561Buffer.BlockCopy(inputStart, 0, contentBytes, 0, inputStart.Length); 562Buffer.BlockCopy(bom, 0, contentBytes, inputStart.Length, bom.Length); 563Buffer.BlockCopy(inputEnd, 0, contentBytes, inputStart.Length + bom.Length, inputEnd.Length); 575Buffer.BlockCopy(sampleStringBytes, 0, expectedBytes, 0, sampleStringBytes.Length); 576Buffer.BlockCopy(bom, 0, expectedBytes, sampleStringBytes.Length, bom.Length);
Microsoft.AspNetCore.OpenApi (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
303Buffer.BlockCopy(buffer, offset, _currentSegment, position, count);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http3\QPack\EncoderStreamReader.cs (1)
272Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
641Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
Microsoft.AspNetCore.Session (1)
DistributedSession.cs (1)
158Buffer.BlockCopy(src: value, srcOffset: 0, dst: copy, dstOffset: 0, count: value.Length);
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\runtime\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
src\Shared\runtime\Http3\QPack\QPackDecoder.cs (1)
641Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
303Buffer.BlockCopy(buffer, offset, _currentSegment, position, count);
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
303Buffer.BlockCopy(buffer, offset, _currentSegment, position, count);
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
303Buffer.BlockCopy(buffer, offset, _currentSegment, position, count);
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
303Buffer.BlockCopy(buffer, offset, _currentSegment, position, count);
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
303Buffer.BlockCopy(buffer, offset, _currentSegment, position, count);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\SignalR\common\Shared\MemoryBufferWriter.cs (1)
303Buffer.BlockCopy(buffer, offset, _currentSegment, position, count);
Microsoft.AspNetCore.WebSockets.Tests (3)
BufferStream.cs (3)
134Buffer.BlockCopy(_topBuffer.Array, _topBuffer.Offset, buffer, offset, actualCount); 198Buffer.BlockCopy(_topBuffer.Array, _topBuffer.Offset, buffer, offset, actualCount); 232Buffer.BlockCopy(buffer, offset, internalBuffer, 0, count);
Microsoft.AspNetCore.WebUtilities (4)
BufferedReadStream.cs (3)
210Buffer.BlockCopy(_buffer, _bufferOffset, buffer, offset, toCopy); 292Buffer.BlockCopy(_buffer, _bufferOffset, _buffer, 0, _bufferCount); 325Buffer.BlockCopy(_buffer, _bufferOffset, _buffer, 0, _bufferCount);
HttpResponseStreamWriter.cs (1)
646Buffer.BlockCopy(
Microsoft.CodeAnalysis (1)
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (1)
761Buffer.BlockCopy(data, 4, guidBytes, 0, guidBytes.Length);
Microsoft.DotNet.Build.Tasks.Workloads (8)
Utils.cs (8)
143Buffer.BlockCopy(BitConverter.GetBytes(timeLow), 0, hashBuffer, 0, 4); 144Buffer.BlockCopy(BitConverter.GetBytes(timeMid), 0, hashBuffer, 4, 2); 145Buffer.BlockCopy(BitConverter.GetBytes(timeHiVersion), 0, hashBuffer, 6, 2); 146Buffer.BlockCopy(namespaceBytes, 8, hashBuffer, 8, 8); 147Buffer.BlockCopy(nameBytes, 0, hashBuffer, 16, nameBytes.Length); 159Buffer.BlockCopy(BitConverter.GetBytes(timeLow), 0, hash, 0, 4); 163Buffer.BlockCopy(BitConverter.GetBytes(timeMid), 0, hash, 4, 2); 170Buffer.BlockCopy(BitConverter.GetBytes(timeHiVersion), 0, hash, 6, 2);
Microsoft.Extensions.AI.OpenAI (2)
src\Shared\ServerSentEvents\ArrayBuffer.cs (2)
147Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\BufferChunk.cs (1)
61Buffer.BlockCopy(Array!, 0, copy, 0, length);
Microsoft.Extensions.DependencyModel (1)
DependencyContextJsonReader.cs (1)
104Buffer.BlockCopy(toReturn, 0, rented, 0, toReturn.Length);
Microsoft.Extensions.Identity.Core (9)
PasswordHasher.cs (8)
127Buffer.BlockCopy(salt, 0, outputBytes, 1, SaltSize); 128Buffer.BlockCopy(subkey, 0, outputBytes, 1 + SaltSize, Pbkdf2SubkeyLength); 153Buffer.BlockCopy(salt, 0, outputBytes, 13, salt.Length); 154Buffer.BlockCopy(subkey, 0, outputBytes, 13 + saltSize, subkey.Length); 234Buffer.BlockCopy(hashedPassword, 1, salt, 0, salt.Length); 237Buffer.BlockCopy(hashedPassword, 1 + salt.Length, expectedSubkey, 0, expectedSubkey.Length); 268Buffer.BlockCopy(hashedPassword, 13, salt, 0, salt.Length); 277Buffer.BlockCopy(hashedPassword, 13 + salt.Length, expectedSubkey, 0, expectedSubkey.Length);
Rfc6238AuthenticationService.cs (1)
74Buffer.BlockCopy(modifierBytes, 0, combined, input.Length, modifierBytes.Length);
Microsoft.Extensions.Logging.Console (2)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (2)
146Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength);
Microsoft.ML.Core (2)
Utilities\Stream.cs (1)
856Buffer.MemoryCopy(src, (byte*)destination + offset, destinationSizeInBytes - offset, read);
Utilities\TextReaderStream.cs (1)
162Buffer.BlockCopy(_buff, _buffCur, buffer, offset, toCopy);
Microsoft.ML.TorchSharp (1)
Utils\FileUtils.cs (1)
63Buffer.BlockCopy(byteBuffer, 0, targetBuffer, 0, numBytesConsumed);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
65[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffer))]
netstandard (1)
netstandard.cs (1)
58[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffer))]
PresentationCore (6)
MS\Internal\Shaping\UshortList2.cs (5)
196Buffer.BlockCopy( 223Buffer.BlockCopy(_array, 0, newArray, 0, index * sizeof(ushort)); 227Buffer.BlockCopy( 242Buffer.BlockCopy( 255Buffer.BlockCopy(
System\Windows\Media\RenderData.cs (1)
481Buffer.MemoryCopy(pBuffer, pNewBuffer, _buffer.Length, _buffer.Length);
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
322Buffer.MemoryCopy(array_data, data.ToPointer(), byte_length, byte_length);
Shared (2)
ServerSentEvents\ArrayBuffer.cs (2)
147Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength);
System.Data.Odbc (2)
Common\System\Data\ProviderBase\DbBuffer.cs (2)
769Buffer.BlockCopy(tmp, 14, buffer, 2, 2); // copy sign and scale 771Buffer.BlockCopy(tmp, 0, buffer, 4, 12);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.Oid.cs (1)
141Buffer.BlockCopy(tmp, 0, _buffer, _offset, tmpOffset);
System.IO.Ports (9)
System\IO\Ports\SerialPort.cs (9)
676Buffer.BlockCopy(_inBuffer, _readPos, buffer, offset, bytesReadToBuffer); 1000Buffer.BlockCopy(_inBuffer, _readPos, bytesReceived, 0, CachedBytesToRead); 1031Buffer.BlockCopy(bytesReceived, 0, _inBuffer, 0, bytesReceived.Length); // put it all back! 1047Buffer.BlockCopy(bytesReceived, lastFullCharIndex + 1, _inBuffer, 0, bytesReceived.Length - (lastFullCharIndex + 1)); 1152Buffer.BlockCopy(_inBuffer, _readPos, savBuffer, 0, bytesToSave); 1159Buffer.BlockCopy(readBuffer, 0, _inBuffer, _readLen, readBuffer.Length); 1164Buffer.BlockCopy(savBuffer, 0, _inBuffer, _readLen, bytesToSave); 1306Buffer.BlockCopy(_inBuffer, _readPos, _inBuffer, 0, CachedBytesToRead); 1335Buffer.BlockCopy(_inBuffer, _readPos, newBuffer, 0, CachedBytesToRead);
System.Net.Http (4)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (2)
146Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength);
src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\HPackDecoder.cs (1)
599Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
src\libraries\Common\src\System\Net\Http\aspnetcore\Http3\QPack\QPackDecoder.cs (1)
641Buffer.BlockCopy(_stringOctets, 0, dst, 0, _stringLength);
System.Net.HttpListener (3)
System\Net\Managed\ChunkStream.cs (2)
67Buffer.BlockCopy(Bytes, Offset, buffer, offset, nread); 229Buffer.BlockCopy(buffer, offset, chunk, 0, diff);
System\Net\Managed\HttpRequestStream.Managed.cs (1)
87Buffer.BlockCopy(_buffer, _offset, buffer, offset, size);
System.Net.Mail (7)
System\Net\BufferBuilder.cs (2)
26Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offset); 47Buffer.BlockCopy(value, offset, _buffer, _offset, count);
System\Net\BufferedReadStream.cs (5)
54Buffer.BlockCopy(_storedBuffer!, _storedOffset, buffer, offset, read); 76Buffer.BlockCopy(_storedBuffer!, _storedOffset, buffer, offset, read); 135Buffer.BlockCopy(_storedBuffer, _storedOffset, _storedBuffer, count, _storedLength - _storedOffset); 142Buffer.BlockCopy(_storedBuffer, _storedOffset, newBuffer, count, _storedLength - _storedOffset); 149Buffer.BlockCopy(buffer, offset, _storedBuffer!, _storedOffset, count);
System.Net.NetworkInformation (1)
System\Net\NetworkInformation\UnixNetworkInterface.cs (1)
104Buffer.MemoryCopy(llAddr->AddressBytes, macAddressPtr, llAddr->NumAddressBytes, llAddr->NumAddressBytes);
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.RawSocket.cs (1)
239Buffer.BlockCopy(receiveBuffer, dataOffset, dataBuffer, 0, dataBuffer.Length);
System.Net.Quic (2)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (2)
146Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength);
System.Net.Security (2)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (2)
146Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength);
System.Net.ServerSentEvents (2)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (2)
146Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength);
System.Net.Sockets (2)
System\Net\Sockets\Socket.cs (2)
2270Buffer.BlockCopy(optionValue, 0, newOptionValue, 0, realOptionLength); 2794Buffer.BlockCopy(innerBuffer, 0, buffer, 0, bytesTransferred);
System.Net.WebClient (1)
src\libraries\Common\src\System\IO\ChunkedMemoryStream.cs (1)
30Buffer.BlockCopy(chunk._buffer, 0, result, offset, chunk._freeOffset);
System.Private.CoreLib (57)
src\libraries\System.Private.CoreLib\src\System\Array.cs (3)
62Buffer.Memmove( 376Buffer.BulkMoveWithWriteBarrier(ref dst, ref src, byteCount); 407Buffer.BulkMoveWithWriteBarrier(ref dst, ref src, byteCount);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (1)
214Buffer.BlockCopy(value, 0, this.buffer, oldPos, size);
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\FieldMetadata.cs (1)
215Buffer.BlockCopy(custom, 0, metadata, pos, this.fixedCount);
src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (4)
125Buffer.BlockCopy(_buffer, 0, shadowBuffer, 0, _writePos); 440Buffer.BlockCopy(_buffer!, _readPos, buffer, offset, readbytes); 774Buffer.BlockCopy(buffer, offset, _buffer, _writePos, bytesToWrite); 908Buffer.BlockCopy(buffer, offset, _buffer, _writePos, count);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (1)
1234Buffer.BlockCopy(rentedArray, 0, tmp, 0, bytesRead);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (3)
279Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _length); 339Buffer.BlockCopy(_buffer, _position, buffer, offset, n); 616Buffer.BlockCopy(buffer, offset, _buffer, _position, count);
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
441Buffer.MemoryCopy(srcPtr, dstPtr + dstPos, bytesToCopy, bytesToCopy);
src\libraries\System.Private.CoreLib\src\System\Number.BigInteger.cs (1)
1199Buffer.Memmove(ref result._blocks[0], ref value._blocks[0], (nuint)rhsLength);
src\libraries\System.Private.CoreLib\src\System\ReadOnlySpan.cs (3)
301Buffer.Memmove(ref destination._reference, ref _reference, (uint)_length); 322Buffer.Memmove(ref destination._reference, ref _reference, (uint)_length); 399Buffer.Memmove(ref MemoryMarshal.GetArrayDataReference(destination), ref _reference, (uint)_length);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
434Buffer.BlockCopy(dest, 0, newresult, 0, destPos << 1);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\RuntimeHelpers.cs (1)
62Buffer.Memmove(
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
447Buffer.MemoryCopy(srcPtr, dstPtr, destination.ByteLength, bytesLength);
src\libraries\System.Private.CoreLib\src\System\Span.cs (3)
319Buffer.Memmove(ref destination._reference, ref _reference, (uint)_length); 340Buffer.Memmove(ref destination._reference, ref _reference, (uint)_length); 429Buffer.Memmove(ref MemoryMarshal.GetArrayDataReference(destination), ref _reference, (uint)_length);
src\libraries\System.Private.CoreLib\src\System\SpanHelpers.ByteMemOps.cs (2)
242Buffer._Memmove(ref dest, ref src, len); 428Buffer._ZeroMemory(ref dest, len);
src\libraries\System.Private.CoreLib\src\System\String.cs (5)
83Buffer.Memmove( 109Buffer.Memmove( 135Buffer.Memmove( 169Buffer.Memmove( 317Buffer.Memmove(ref result._firstChar, ref MemoryMarshal.GetReference(value), (uint)value.Length);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (10)
62Buffer.Memmove( 712Buffer.Memmove(ref result._firstChar, ref _firstChar, (nuint)startIndex); 713Buffer.Memmove(ref Unsafe.Add(ref result._firstChar, startIndex), ref value._firstChar, (nuint)insertLength); 714Buffer.Memmove(ref Unsafe.Add(ref result._firstChar, startIndex + insertLength), ref Unsafe.Add(ref _firstChar, startIndex), (nuint)(oldLength - startIndex)); 1138Buffer.Memmove(ref Unsafe.Add(ref result._firstChar, count), ref _firstChar, (nuint)oldLength); 1155Buffer.Memmove(ref result._firstChar, ref _firstChar, (nuint)oldLength); 1176Buffer.Memmove(ref result._firstChar, ref _firstChar, (nuint)startIndex); 1177Buffer.Memmove(ref Unsafe.Add(ref result._firstChar, startIndex), ref Unsafe.Add(ref _firstChar, startIndex + count), (nuint)(newLength - startIndex)); 1289Buffer.Memmove(ref result._firstChar, ref _firstChar, (uint)copyLength); 2286Buffer.Memmove(
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (2)
339Buffer.Memmove( 2288Buffer.Memmove(ref destination, ref value, (nuint)valueCount);
src\System\Array.CoreCLR.cs (3)
92Buffer.BulkMoveWithWriteBarrier(ref dst, ref src, byteCount); 278Buffer.BulkMoveWithWriteBarrier(ref dest, ref obj.GetRawData(), destSize); 575Buffer.BulkMoveWithWriteBarrier(ref offsetDataRef, ref value.GetRawData(), elementSize);
src\System\Object.CoreCLR.cs (1)
40Buffer.BulkMoveWithWriteBarrier(ref dst, ref src, byteCount);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
1274Buffer.BlockCopy(sigBytes, 0, localSigBytes, 0, sigBytes.Length);
src\System\Reflection\Emit\SignatureHelper.cs (3)
573Buffer.BlockCopy(inArray, 0, outArray, 0, inArray.Length); 637Buffer.BlockCopy(m_signature, m_sizeLoc + 1, temp, m_sizeLoc + newSigSize, currSigHolder - (m_sizeLoc + 1)); 723Buffer.BlockCopy(m_signature, 2, temp, sigCopyIndex, currSigLength - 2);
src\System\Runtime\CompilerServices\CastHelpers.cs (3)
578Buffer.BulkMoveWithWriteBarrier(ref destPtr, ref RuntimeHelpers.GetRawData(obj), typeMT->GetNullableNumInstanceFieldBytes()); 608Buffer.BulkMoveWithWriteBarrier(ref dst, ref src, valueSize); 634Buffer.BulkMoveWithWriteBarrier(ref dstData, ref srcData, dstMT->GetNumInstanceFieldBytesIfContainsGCPointers());
src\System\RuntimeType.BoxCache.cs (1)
93Buffer.BulkMoveWithWriteBarrier(ref result.GetRawData(), ref source, _valueTypeSize);
src\System\StubHelpers.cs (2)
274Buffer.Memmove(ref *(char*)ptrToFirstChar, ref strManaged.GetRawStringData(), (nuint)strManaged.Length + 1); 1005Buffer.Memmove(ref *(char*)pNativeHome, ref pManagedHome.GetRawStringData(), (nuint)pManagedHome.Length + 1);
System.Private.DataContractSerialization (21)
System\Xml\ValueHandle.cs (1)
447Buffer.BlockCopy(buffer, 0, newBuffer, 0, actualLength);
System\Xml\XmlBaseReader.cs (4)
1426Buffer.BlockCopy(_trailBytes, 0, buffer, offset, actual); 1428Buffer.BlockCopy(_trailBytes, actual, _trailBytes, 0, _trailByteCount); 1494Buffer.BlockCopy(_trailBytes, 0, buffer, offset, actual); 1496Buffer.BlockCopy(_trailBytes, actual, _trailBytes, 0, _trailByteCount);
System\Xml\XmlBaseWriter.cs (2)
1506Buffer.BlockCopy(buffer, offset, _trailBytes, _trailByteCount, count); 1563Buffer.BlockCopy(buffer, offset, _trailBytes, _trailByteCount, count);
System\Xml\XmlBufferReader.cs (6)
229System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 258System.Buffer.BlockCopy(_buffer, 0, newBuffer, 0, _offsetMax); 262System.Buffer.BlockCopy(_buffer, _offset, _buffer, _offset + count, _offsetMax - _offset); 264System.Buffer.BlockCopy(buffer, offset, _buffer, _offset, count); 279System.Buffer.BlockCopy(_buffer, _offset, _buffer, windowOffset, _offsetMax - _offset); 998System.Buffer.BlockCopy(_buffer, srcOffset, buffer, dstOffset, count);
System\Xml\XmlCanonicalWriter.cs (3)
351Buffer.BlockCopy(_xmlnsBuffer, 0, newBuffer, 0, _xmlnsOffset); 405Buffer.BlockCopy(prefixBuffer, prefixOffset, _xmlnsBuffer, _xmlnsOffset, prefixLength); 409Buffer.BlockCopy(nsBuffer, nsOffset, _xmlnsBuffer, _xmlnsOffset, nsLength);
System\Xml\XmlConverter.cs (2)
672Buffer.BlockCopy(chars, offset + MaxInt32Chars - count, chars, offset, count); 679Buffer.BlockCopy(chars, offset + MaxInt64Chars - count, chars, offset, count);
System\Xml\XmlDictionaryReader.cs (2)
539Buffer.BlockCopy(buffers[i], 0, buffer, offset, buffers[i].Length); 542Buffer.BlockCopy(buffers[bufferCount - 1], 0, buffer, offset, totalRead - offset);
System\Xml\XmlStreamNodeWriter.cs (1)
218Buffer.BlockCopy(byteBuffer, byteOffset, buffer, offset, byteCount);
System.Private.Xml (7)
System\Xml\ByteStack.cs (1)
37Buffer.BlockCopy(_stack, 0, newstack, 0, _top);
System\Xml\Core\IncrementalReadDecoders.cs (1)
77Buffer.BlockCopy(chars, startPos * 2, _buffer, _curIndex * 2, copyCount * 2);
System\Xml\Core\XmlTextReaderImpl.cs (2)
9729Buffer.BlockCopy(src, srcOffset * sizeof(char), dst, dstOffset * sizeof(char), count * sizeof(char)); 9734Buffer.BlockCopy(src, srcOffset, dst, dstOffset, count);
System\Xml\Serialization\XmlSerializationReader.cs (1)
506Buffer.BlockCopy(block, 0, result, offset, currentSize);
System\Xml\XmlEncoding.cs (2)
86Buffer.BlockCopy(bytes, byteIndex, chars, charIndex * CharSize, byteCount); 151Buffer.BlockCopy(bytes, byteIndex, chars, charIndex * CharSize, (int)(byteCount & ~0x1));
System.Reflection.Metadata (1)
System\Reflection\Metadata\Internal\StringHeap.cs (1)
187Buffer.BlockCopy(prefix, 0, bytes, 0, prefix.Length);
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
53[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Buffer))]
System.Security.Cryptography (18)
src\libraries\Common\src\System\Security\Cryptography\KeyBlobHelpers.cs (1)
59Buffer.BlockCopy(target, 0, target, length - bytesWritten, bytesWritten);
System\Security\Cryptography\CapiHelper.Shared.cs (1)
271Buffer.BlockCopy(currentIV, 0, tmp, 0, tmp.Length);
System\Security\Cryptography\CryptoStream.cs (4)
267Buffer.BlockCopy(_outputBuffer, 1, _outputBuffer, 0, _outputBufferIndex - 1); 361Buffer.BlockCopy(_inputBuffer, 0, tempInputBuffer, 0, _inputBufferIndex); 373Buffer.BlockCopy(tempInputBuffer, numWholeReadBlocksInBytes, _inputBuffer, 0, _inputBufferIndex); 411Buffer.BlockCopy(tempInputBuffer, _inputBufferIndex, _inputBuffer, _inputBufferIndex, bytesRead);
System\Security\Cryptography\HashAlgorithm.cs (2)
206Buffer.BlockCopy(inputBuffer, inputOffset, outputBuffer, outputOffset, inputCount); 221Buffer.BlockCopy(inputBuffer, inputOffset, outputBytes, 0, inputCount);
System\Security\Cryptography\PasswordDeriveBytes.cs (5)
129Buffer.BlockCopy(_extra, _extraCount, rgbOut, 0, cb); 146Buffer.BlockCopy(_extra, ib, rgbOut, 0, ib); 152Buffer.BlockCopy(rgb, 0, rgbOut, ib, cb - ib); 240Buffer.BlockCopy(_hash.Hash!, 0, rgb, ib, cbHash); 253Buffer.BlockCopy(_hash.Hash!, 0, rgb, ib, cbHash);
System\Security\Cryptography\PKCS1MaskGenerationMethod.cs (1)
49Buffer.BlockCopy(hash, 0, rgbT, ib, Math.Min(rgbT.Length - ib, hash.Length));
System\Security\Cryptography\RandomNumberGenerator.cs (1)
51Buffer.BlockCopy(tempData, 0, data, offset, count);
System\Security\Cryptography\X509Certificates\ECDsaX509SignatureGenerator.cs (2)
106Buffer.BlockCopy(ecParameters.Q.X, 0, uncompressedPoint, 1, ecParameters.Q.X.Length); 107Buffer.BlockCopy(ecParameters.Q.Y, 0, uncompressedPoint, 1 + ecParameters.Q.X.Length, ecParameters.Q.Y.Length);
System\Security\Cryptography\XmlKeyHelper.cs (1)
63Buffer.BlockCopy(ret, 0, ret, shift, written);
System.Security.Cryptography.Xml (26)
System\Security\Cryptography\Xml\EncryptedXml.cs (3)
302Buffer.BlockCopy(cipherValue, 0, IV, 0, IV.Length); 739Buffer.BlockCopy(IV, 0, output, 0, IV.Length); 740Buffer.BlockCopy(cipher, 0, output, IV.Length, cipher.Length);
System\Security\Cryptography\Xml\SignedXml.cs (1)
475Buffer.BlockCopy(hashValue, 0, m_signature.SignatureValue, 0, signatureLength / 8);
System\Security\Cryptography\Xml\SymmetricKeyWrap.cs (22)
51Buffer.BlockCopy(rgbWrappedKeyData, 0, rgbWKCKS, 0, rgbWrappedKeyData.Length); 52Buffer.BlockCopy(rgbCKS, 0, rgbWKCKS, rgbWrappedKeyData.Length, 8); 55Buffer.BlockCopy(rgbIV, 0, temp2, 0, rgbIV.Length); 56Buffer.BlockCopy(temp1, 0, temp2, rgbIV.Length, temp1.Length); 93Buffer.BlockCopy(temp2, 0, rgbIV, 0, 8); 95Buffer.BlockCopy(temp2, 8, temp1, 0, temp1.Length); 102Buffer.BlockCopy(rgbWKCKS, 0, rgbWrappedKeyData, 0, rgbWrappedKeyData.Length); 144Buffer.BlockCopy(s_rgbAES_KW_IV, 0, temp, 0, s_rgbAES_KW_IV.Length); 145Buffer.BlockCopy(rgbWrappedKeyData, 0, temp, s_rgbAES_KW_IV.Length, rgbWrappedKeyData.Length); 152Buffer.BlockCopy(rgbWrappedKeyData, 0, rgbOutput, 8, rgbWrappedKeyData.Length); 155Buffer.BlockCopy(s_rgbAES_KW_IV, 0, rgbA, 0, 8); 161Buffer.BlockCopy(rgbA, 0, rgbBlock, 0, 8); 162Buffer.BlockCopy(rgbOutput, 8 * i, rgbBlock, 8, 8); 169Buffer.BlockCopy(rgbB, 8, rgbOutput, 8 * i, 8); 173Buffer.BlockCopy(rgbA, 0, rgbOutput, 0, 8); 212Buffer.BlockCopy(temp, 8, rgbOutput, 0, 8); 218Buffer.BlockCopy(rgbEncryptedWrappedKeyData, 8, rgbOutput, 0, rgbOutput.Length); 221Buffer.BlockCopy(rgbEncryptedWrappedKeyData, 0, rgbA, 0, 8); 232Buffer.BlockCopy(rgbA, 0, rgbBlock, 0, 8); 233Buffer.BlockCopy(rgbOutput, 8 * (i - 1), rgbBlock, 8, 8); 235Buffer.BlockCopy(rgbB, 8, rgbOutput, 8 * (i - 1), 8); 236Buffer.BlockCopy(rgbB, 0, rgbA, 0, 8);
System.ServiceModel.NetFramingBase (6)
System\ServiceModel\Channels\FramingDecoders.cs (1)
161Buffer.BlockCopy(buffer, offset, _encodedBytes, _encodedSize - _bytesNeeded, bytesConsumed);
System\ServiceModel\Channels\SessionConnectionReader.cs (1)
236Buffer.BlockCopy(buffer, offset, EnvelopeBuffer, EnvelopeOffset, bytesRead);
System\ServiceModel\Channels\SingletonConnectionReader.cs (4)
170Buffer.BlockCopy(buffer, offset, initialData, 0, size); 276Buffer.BlockCopy(buffer, offset, _chunkBuffer, 0, size); 354Buffer.BlockCopy(_chunkBuffer, _chunkBufferOffset, buffer, offset, bytesToCopy); 458Buffer.BlockCopy(_chunkBuffer, _chunkBufferOffset, buffer, offset, bytesToCopy);
System.Text.Json (12)
src\libraries\Common\src\System\Net\ArrayBuffer.cs (2)
146Buffer.BlockCopy(_bytes, _activeStart, _bytes, 0, ActiveLength); 170Buffer.BlockCopy(oldBytes, _activeStart, newBytes, 0, ActiveLength);
System\Text\Json\Document\JsonDocument.MetadataDb.cs (2)
202Buffer.BlockCopy(_data, 0, newRent, 0, Length); 258Buffer.BlockCopy(toReturn, 0, _data, 0, toReturn.Length);
System\Text\Json\Document\JsonDocument.Parse.cs (5)
157Buffer.BlockCopy(drained.Array, 0, owned, 0, drained.Count); 238Buffer.BlockCopy(drained.Array, 0, owned, 0, drained.Count); 304Buffer.BlockCopy(utf8Bytes, 0, owned, 0, actualByteCount); 811Buffer.BlockCopy(toReturn, 0, rented, 0, toReturn.Length); 891Buffer.BlockCopy(toReturn, 0, rented, 0, toReturn.Length);
System\Text\Json\Document\JsonDocument.StackRowStack.cs (1)
68Buffer.BlockCopy(
System\Text\Json\Serialization\ReadBufferState.cs (2)
139Buffer.BlockCopy(oldBuffer, _offset + bytesConsumed, newBuffer, 0, _count); 150Buffer.BlockCopy(_buffer, _offset + bytesConsumed, _buffer, 0, _count);
System.Transactions.Local (2)
System\Transactions\TransactionInteropNonWindows.cs (2)
58Buffer.BlockCopy(whereabouts, 0, whereaboutsCopy, 0, whereabouts.Length); 87Buffer.BlockCopy(cookie, 0, cookieCopy, 0, cookie.Length);
System.Windows.Forms (2)
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
565Buffer.MemoryCopy(srcPtr.ToPointer(), destPtr.ToPointer(), length, length);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (1)
1538Buffer.MemoryCopy(strPtr, currentPtr, bytesToCopy, bytesToCopy);