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

◆ GetNewBufferSize()

static int System.Diagnostics.NtProcessInfoHelper.GetNewBufferSize ( int existingBufferSize,
int requiredSize )
inlinestaticprivate

Definition at line 48 of file NtProcessInfoHelper.cs.

49 {
50 int num = ((requiredSize != 0) ? (requiredSize + 10240) : (existingBufferSize * 2));
51 if (num < 0)
52 {
53 throw new OutOfMemoryException();
54 }
55 return num;
56 }

Referenced by System.Diagnostics.NtProcessInfoHelper.GetProcessInfos().