/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 2.0.12 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ namespace RakNet { using System; using System.Runtime.InteropServices; public class Table : IDisposable { private HandleRef swigCPtr; protected bool swigCMemOwn; internal Table(IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new HandleRef(this, cPtr); } internal static HandleRef getCPtr(Table obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; } ~Table() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; RakNetPINVOKE.delete_Table(swigCPtr); } swigCPtr = new HandleRef(null, IntPtr.Zero); } GC.SuppressFinalize(this); } } public RakNetPageRow GetListHead() { return GetListHeadHelper(); } public void SortTable(SortQuery [] sortQueries, uint numSortQueries, out Row[] arg2) { RakNetListSortQuery sortQueriesList =null; if (sortQueries!=null) { sortQueriesList = new RakNetListSortQuery(); int listLen = sortQueries.Length; for (int i = 0; i < listLen; i++) { sortQueriesList.Insert(sortQueries[i], "", 1); } } int rowCount= (int)GetRowCount(); Row[] rowArray= new Row[rowCount]; RakNetListTableRow passVal = new RakNetListTableRow(); SortTableHelper(sortQueriesList,numSortQueries,passVal); for (int i=0; i