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

◆ EnsureDestinationSize()

static unsafe char[] System.Reflection.AssemblyName.EnsureDestinationSize ( char * pStr,
char[] dest,
int currentInputPos,
short charsToAdd,
short minReallocateChars,
ref int destPos,
int prevInputPos )
inlinestaticprivate

Definition at line 499 of file AssemblyName.cs.

500 {
501 if (dest == null || dest.Length < destPos + (currentInputPos - prevInputPos) + charsToAdd)
502 {
504 if (dest != null && destPos != 0)
505 {
506 Buffer.BlockCopy(dest, 0, array, 0, destPos << 1);
507 }
508 dest = array;
509 }
511 {
513 }
514 return dest;
515 }

References System.array, System.Buffer.BlockCopy(), and System.Runtime.Serialization.Dictionary.

Referenced by System.Reflection.AssemblyName.EscapeString().