Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MemoryCopy() [1/2]

static unsafe void System.Buffer.MemoryCopy ( void * source,
void * destination,
long destinationSizeInBytes,
long sourceBytesToCopy )
inlinestatic

Definition at line 195 of file Buffer.cs.

196 {
197 if (sourceBytesToCopy > destinationSizeInBytes)
198 {
199 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.sourceBytesToCopy);
200 }
201 Memmove(ref *(byte*)destination, ref *(byte*)source, checked((nuint)sourceBytesToCopy));
202 }
static void Memmove(ref byte dest, ref byte src, nuint len)
Definition Buffer.cs:215

References System.destination, System.Buffer.Memmove(), System.source, System.sourceBytesToCopy, and System.ThrowHelper.ThrowArgumentOutOfRangeException().

Referenced by System.Security.SecureString.UnmanagedBuffer.Copy(), System.Net.NetEventSource.DumpBuffer(), and System.IO.StreamWriter.WriteSpan().