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

◆ Copy()

static unsafe void System.Security.SecureString.UnmanagedBuffer.Copy ( UnmanagedBuffer source,
UnmanagedBuffer destination,
ulong bytesLength )
inlinestaticpackage

Definition at line 27 of file SecureString.cs.

28 {
29 if (bytesLength == 0L)
30 {
31 return;
32 }
33 byte* pointer = null;
34 byte* pointer2 = null;
35 try
36 {
37 source.AcquirePointer(ref pointer);
38 destination.AcquirePointer(ref pointer2);
39 Buffer.MemoryCopy(pointer, pointer2, destination.ByteLength, bytesLength);
40 }
41 finally
42 {
43 if (pointer2 != null)
44 {
45 destination.ReleasePointer();
46 }
47 if (pointer != null)
48 {
49 source.ReleasePointer();
50 }
51 }
52 }

References System.destination, System.L, System.Buffer.MemoryCopy(), System.pointer, and System.source.

Referenced by System.Security.SecureString.SecureString(), and System.Security.SecureString.EnsureCapacity().