private void AllocScriptRunBuffers()
 {
     ScriptRuns = (ScriptRun*)Memory.Alloc(ScriptRunCapacity * sizeof(ScriptRun));
 }
        private void FreeScriptRunBuffers()
        {
            ScriptRunCapacity = 0;

            if (ScriptRuns != null)
            {
                Memory.Free(ScriptRuns);
                ScriptRuns = null;
            }
        }
 private void InitializeScriptRunBuffers()
 {
     ScriptRunCapacity = 0;
     ScriptRuns = null;
 }