system\io\bufferedstream.cs (5)
183Buffer.InternalBlockCopy(_buffer, 0, shadowBuffer, 0, _writePos);
479Buffer.InternalBlockCopy(_buffer, _readPos, array, offset, readBytes);
834Buffer.InternalBlockCopy(array, offset, _buffer, _writePos, bytesToWrite);
976Buffer.InternalBlockCopy(array, offset, _buffer, _writePos, count);
1213Buffer.InternalBlockCopy(array, offset, _buffer, _writePos, count);
system\io\filestream.cs (9)
1535Buffer.InternalBlockCopy(_buffer, _readPos, array, offset, n);
1657Buffer.InternalBlockCopy(_buffer, _readPos, _buffer, 0, _readLen - _readPos);
1669Buffer.InternalBlockCopy(_buffer, _readPos+diff, _buffer, 0, _readLen - (_readPos + diff));
1786Buffer.InternalBlockCopy(array, offset, _buffer, _writePos, numBytes);
1819Buffer.InternalBlockCopy(array, offset, _buffer, _writePos, count);
1924Buffer.InternalBlockCopy(_buffer, _readPos, array, offset, n);
1961Buffer.InternalBlockCopy(_buffer, 0, array, offset, n);
1980Buffer.InternalBlockCopy(_buffer, _readPos, array, offset, n);
2252Buffer.InternalBlockCopy(array, offset, _buffer, _writePos, numBytes);
system\io\memorystream.cs (4)
302if (_length > 0) Buffer.InternalBlockCopy(_buffer, 0, newBuffer, 0, _length);
366Buffer.InternalBlockCopy(_buffer, _position, buffer, offset, n);
553Buffer.InternalBlockCopy(_buffer, _origin, copy, 0, _length - _origin);
594Buffer.InternalBlockCopy(buffer, offset, _buffer, _position, count);
system\io\streamreader.cs (3)
411Buffer.InternalBlockCopy(charBuffer, charPos * 2, buffer, (index + charsRead) * 2, n*2);
469Buffer.InternalBlockCopy(byteBuffer, n, byteBuffer, 0, byteLen - n);
1073Buffer.InternalBlockCopy(CharBuffer_Prop, CharPos_Prop * 2, buffer, (index + charsRead) * 2, n * 2);
system\io\streamwriter.cs (3)
385Buffer.InternalBlockCopy(buffer, index * sizeof(char), charBuffer, charPos * sizeof(char), n * sizeof(char));
413Buffer.InternalBlockCopy(buffer, index * sizeof(char), charBuffer, charPos * sizeof(char), n * sizeof(char));
653Buffer.InternalBlockCopy(buffer, index * sizeof(char), charBuffer, charPos * sizeof(char), n * sizeof(char));
system\io\unmanagedmemorystream.cs (7)
427Buffer.Memcpy(buffer, offset, pointer + pos + _offset, 0, nInt);
438Buffer.Memcpy(buffer, offset, _mem + pos, 0, nInt);
561Buffer.ZeroMemory(_mem+len, value-len);
601Buffer.ZeroMemory(_mem+len, pos-len);
623Buffer.Memcpy(pointer + pos + _offset, 0, buffer, offset, count);
634Buffer.Memcpy(_mem + pos, 0, buffer, offset, count);
695Buffer.ZeroMemory(_mem+len, pos-len);
system\security\cryptography\base64transforms.cs (11)
61Buffer.BlockCopy(tempBytes, 0, outputBuffer, outputOffset, tempBytes.Length);
162Buffer.InternalBlockCopy(inputBuffer, inputOffset, temp, 0, inputCount);
167Buffer.InternalBlockCopy(temp, 0, _inputBuffer, _inputIndex, effectiveCount);
175Buffer.InternalBlockCopy(_inputBuffer, 0, transformBuffer, 0, _inputIndex);
176Buffer.InternalBlockCopy(temp, 0, transformBuffer, _inputIndex, effectiveCount);
178Buffer.InternalBlockCopy(temp, effectiveCount - _inputIndex, _inputBuffer, 0, _inputIndex);
183Buffer.BlockCopy(tempBytes, 0, outputBuffer, outputOffset, tempBytes.Length);
206Buffer.InternalBlockCopy(inputBuffer, inputOffset, temp, 0, inputCount);
218Buffer.InternalBlockCopy(_inputBuffer, 0, transformBuffer, 0, _inputIndex);
219Buffer.InternalBlockCopy(temp, 0, transformBuffer, _inputIndex, effectiveCount);
221Buffer.InternalBlockCopy(temp, effectiveCount - _inputIndex, _inputBuffer, 0, _inputIndex);
system\security\cryptography\cryptoapitransform.cs (4)
226Buffer.InternalBlockCopy(inputBuffer, inputOffset+inputToProcess, _depadBuffer, 0, InputBlockSize);
233Buffer.InternalBlockCopy(inputBuffer, inputOffset+inputToProcess, _depadBuffer, 0, InputBlockSize);
266Buffer.InternalBlockCopy(_depadBuffer, 0, temp, 0, _depadBuffer.Length);
267Buffer.InternalBlockCopy(inputBuffer, inputOffset, temp, _depadBuffer.Length, inputCount);
system\security\cryptography\cryptostream.cs (30)
200Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, offset, _OutputBufferIndex);
205Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, offset, count);
206Buffer.InternalBlockCopy(_OutputBuffer, count, _OutputBuffer, 0, _OutputBufferIndex - count);
231Buffer.InternalBlockCopy(_InputBuffer, 0, tempInputBuffer, 0, _InputBufferIndex);
245Buffer.InternalBlockCopy(tempInputBuffer, numWholeReadBlocksInBytes, _InputBuffer, 0, numIgnoredBytes);
249Buffer.InternalBlockCopy(tempOutputBuffer, 0, buffer, currentOutputIndex, numOutputBytes);
270Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, currentOutputIndex, numOutputBytes);
274Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, currentOutputIndex, bytesToDeliver);
276Buffer.InternalBlockCopy(_OutputBuffer, bytesToDeliver, _OutputBuffer, 0, _OutputBufferIndex);
293Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, currentOutputIndex, bytesToDeliver);
295Buffer.InternalBlockCopy(_OutputBuffer, bytesToDeliver, _OutputBuffer, 0, _OutputBufferIndex);
298Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, currentOutputIndex, _OutputBufferIndex);
370Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, offset, _OutputBufferIndex);
377Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, offset, count);
378Buffer.InternalBlockCopy(_OutputBuffer, count, _OutputBuffer, 0, _OutputBufferIndex - count);
405Buffer.InternalBlockCopy(_InputBuffer, 0, tempInputBuffer, 0, _InputBufferIndex);
421Buffer.InternalBlockCopy(tempInputBuffer, numWholeReadBlocksInBytes, _InputBuffer, 0, numIgnoredBytes);
425Buffer.InternalBlockCopy(tempOutputBuffer, 0, buffer, currentOutputIndex, numOutputBytes);
449Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, currentOutputIndex, numOutputBytes);
455Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, currentOutputIndex, bytesToDeliver);
457Buffer.InternalBlockCopy(_OutputBuffer, bytesToDeliver, _OutputBuffer, 0, _OutputBufferIndex);
475Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, currentOutputIndex, bytesToDeliver);
477Buffer.InternalBlockCopy(_OutputBuffer, bytesToDeliver, _OutputBuffer, 0, _OutputBufferIndex);
482Buffer.InternalBlockCopy(_OutputBuffer, 0, buffer, currentOutputIndex, _OutputBufferIndex);
512Buffer.InternalBlockCopy(buffer, offset, _InputBuffer, _InputBufferIndex, _InputBlockSize - _InputBufferIndex);
520Buffer.InternalBlockCopy(buffer, offset, _InputBuffer, _InputBufferIndex, count);
562Buffer.InternalBlockCopy(buffer, currentInputIndex, _InputBuffer, 0, bytesToWrite);
625Buffer.InternalBlockCopy(buffer, offset, _InputBuffer, _InputBufferIndex, _InputBlockSize - _InputBufferIndex);
635Buffer.InternalBlockCopy(buffer, offset, _InputBuffer, _InputBufferIndex, count);
686Buffer.InternalBlockCopy(buffer, currentInputIndex, _InputBuffer, 0, bytesToWrite);
system\security\cryptography\mactripledes.cs (7)
229System.Buffer.InternalBlockCopy(buffer, offset+count-_BufferSize, _Buffer, 0, _BufferSize);
233System.Buffer.InternalBlockCopy(_Buffer, _BufferSize - count, _Buffer, 0, _BufferSize - count);
234System.Buffer.InternalBlockCopy(buffer, offset, _Buffer, _BufferSize - count, count);
240System.Buffer.InternalBlockCopy(buffer, offset+count-_BufferSize, _Buffer, 0, _BufferSize);
244System.Buffer.InternalBlockCopy(_Buffer, _BufferIndex+count-_BufferSize, _Buffer, 0, _BufferSize - count);
245System.Buffer.InternalBlockCopy(buffer, offset, _Buffer, _BufferIndex, count);
249System.Buffer.InternalBlockCopy(buffer, offset, _Buffer, _BufferIndex, count);
system\security\cryptography\passwordderivebytes.cs (5)
150Buffer.InternalBlockCopy(_extra, _extraCount, rgbOut, 0, cb);
165Buffer.InternalBlockCopy(_extra, ib, rgbOut, 0, ib);
171Buffer.InternalBlockCopy(rgb, 0, rgbOut, ib, cb-ib);
276Buffer.InternalBlockCopy(_hash.Hash, 0, rgb, ib, cbHash);
287Buffer.InternalBlockCopy(_hash.Hash, 0, rgb, ib, cbHash);
system\security\cryptography\rfc2898derivebytes.cs (5)
165Buffer.InternalBlockCopy(m_buffer, m_startIndex, password, 0, size);
169Buffer.InternalBlockCopy(m_buffer, m_startIndex, password, 0, cb);
181Buffer.InternalBlockCopy(T_block, 0, password, offset, m_blockSize);
184Buffer.InternalBlockCopy(T_block, 0, password, offset, remainder);
186Buffer.InternalBlockCopy(T_block, remainder, m_buffer, m_startIndex, m_blockSize - remainder);
system\security\cryptography\rijndaelmanagedtransform.cs (18)
147Buffer.InternalBlockCopy(m_IV, 0, m_lastBlockBuffer, 0, m_blockSizeBytes);
155Buffer.InternalBlockCopy(m_IV, 0, m_shiftRegister, 0, 4*m_Nb);
276Buffer.InternalBlockCopy(inputBuffer, inputOffset+inputToProcess, m_depadBuffer, 0, InputBlockSize);
294Buffer.InternalBlockCopy(inputBuffer, inputOffset+inputToProcess, m_depadBuffer, 0, InputBlockSize);
347Buffer.InternalBlockCopy(m_depadBuffer, 0, temp, 0, m_depadBuffer.Length);
348Buffer.InternalBlockCopy(inputBuffer, inputOffset, temp, m_depadBuffer.Length, inputCount);
372Buffer.InternalBlockCopy(m_IV, 0, m_lastBlockBuffer, 0, m_blockSizeBytes);
375Buffer.InternalBlockCopy(m_IV, 0, m_shiftRegister, 0, 4*m_Nb);
478Buffer.Memcpy((byte *)work, 0, m_shiftRegister, 0, m_blockSizeBytes);
483Buffer.Memcpy((byte*)work, 0, inputBuffer, workBaseIndex, m_blockSizeBytes);
528Buffer.InternalBlockCopy(inputBuffer, workBaseIndex, tmpInputBuffer, 0, lonelyBytes);
529Buffer.InternalBlockCopy(padBytes, 0, tmpInputBuffer, lonelyBytes, padSize);
548Buffer.InternalBlockCopy(outputBuffer, blockNum * m_inputBlockSize, m_shiftRegister, m_blockSizeBytes - m_inputBlockSize, m_inputBlockSize);
563Buffer.Memcpy((byte*)pLastBlockBuffer, (byte*)temp, m_blockSizeBytes);
664Buffer.InternalBlockCopy(inputBuffer, workBaseIndex, m_shiftRegister, m_blockSizeBytes - m_inputBlockSize, m_inputBlockSize);
722Buffer.InternalBlockCopy(outputBuffer, 0, outputBuffer1, 0, outputBuffer.Length - padSize);
736Buffer.InternalBlockCopy(outputBuffer, 0, outputBuffer1, 0, outputBuffer.Length - padSize);
746Buffer.InternalBlockCopy(outputBuffer, 0, outputBuffer1, 0, outputBuffer.Length - padSize);
system\security\cryptography\ripemd160managed.cs (3)
105Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, 64 - bufferLen);
114Buffer.InternalBlockCopy(partIn, partInBase, _buffer, 0, 64);
121Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen);
system\security\cryptography\sha1managed.cs (3)
145Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, 64 - bufferLen);
154Buffer.InternalBlockCopy(partIn, partInBase, _buffer, 0, 64);
161Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen);
system\security\cryptography\sha256managed.cs (3)
143Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, 64 - bufferLen);
152Buffer.InternalBlockCopy(partIn, partInBase, _buffer, 0, 64);
159Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen);
system\security\cryptography\sha384managed.cs (3)
142Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, 128 - bufferLen);
151Buffer.InternalBlockCopy(partIn, partInBase, _buffer, 0, 128);
158Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen);
system\security\cryptography\sha512managed.cs (3)
134Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, 128 - bufferLen);
143Buffer.InternalBlockCopy(partIn, partInBase, _buffer, 0, 128);
150Buffer.InternalBlockCopy(partIn, partInBase, _buffer, bufferLen, partInLen);
system\security\cryptography\utils.cs (10)
822Buffer.InternalBlockCopy(hash.Hash, 0, DB, 0, cbHash);
824Buffer.InternalBlockCopy(data, 0, DB, DB.Length-data.Length, data.Length);
848Buffer.InternalBlockCopy(seed, 0, pad, 0, seed.Length);
849Buffer.InternalBlockCopy(DB, 0, pad, seed.Length, DB.Length);
880Buffer.InternalBlockCopy(data, 0, seed, zeros, seed.Length - zeros);
883Buffer.InternalBlockCopy(data, seed.Length - zeros, DB, 0, DB.Length);
929Buffer.InternalBlockCopy(DB, i, output, 0, output.Length);
961Buffer.InternalBlockCopy(oid, 0, data, 4, oid.Length);
966Buffer.InternalBlockCopy(hash, 0, data, oid.Length + 8, hash.Length);
979Buffer.InternalBlockCopy(data, 0, pad, cb1, data.Length);