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

◆ ExpandArray() [2/2]

static byte[] System.Reflection.Emit.SignatureHelper.ExpandArray ( byte[] inArray,
int requiredLength )
inlinestaticprivate

Definition at line 496 of file SignatureHelper.cs.

497 {
498 if (requiredLength < inArray.Length)
499 {
500 requiredLength = inArray.Length * 2;
501 }
502 byte[] array = new byte[requiredLength];
503 Buffer.BlockCopy(inArray, 0, array, 0, inArray.Length);
504 return array;
505 }

References System.array, and System.Buffer.BlockCopy().