/* ---------------------------------------------------------------------------- * 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 RakNetListUnsignedInt : IDisposable { private HandleRef swigCPtr; protected bool swigCMemOwn; internal RakNetListUnsignedInt(IntPtr cPtr, bool cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = new HandleRef(this, cPtr); } internal static HandleRef getCPtr(RakNetListUnsignedInt obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; } ~RakNetListUnsignedInt() { Dispose(); } public virtual void Dispose() { lock(this) { if (swigCPtr.Handle != IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; RakNetPINVOKE.delete_RakNetListUnsignedInt(swigCPtr); } swigCPtr = new HandleRef(null, IntPtr.Zero); } GC.SuppressFinalize(this); } } public uint Get(uint position) { SWIGTYPE_p_unsigned_int ret = GetHelper(position); return UnsignedIntPointer.frompointer(ret).value(); } public uint Pop() { SWIGTYPE_p_unsigned_int ret = PopHelper(); return UnsignedIntPointer.frompointer(ret).value(); } public uint this[int index] { get { return Get((uint)index); // use indexto retrieve and return another value. } set { Replace(value, value, (uint)index, "Not used", 0);// use index and value to set the value somewhere. } } public RakNetListUnsignedInt() : this(RakNetPINVOKE.new_RakNetListUnsignedInt__SWIG_0(), true) { } public RakNetListUnsignedInt(RakNetListUnsignedInt original_copy) : this(RakNetPINVOKE.new_RakNetListUnsignedInt__SWIG_1(RakNetListUnsignedInt.getCPtr(original_copy)), true) { if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); } public RakNetListUnsignedInt CopyData(RakNetListUnsignedInt original_copy) { RakNetListUnsignedInt ret = new RakNetListUnsignedInt(RakNetPINVOKE.RakNetListUnsignedInt_CopyData(swigCPtr, RakNetListUnsignedInt.getCPtr(original_copy)), false); if (RakNetPINVOKE.SWIGPendingException.Pending) throw RakNetPINVOKE.SWIGPendingException.Retrieve(); return ret; } private SWIGTYPE_p_unsigned_int GetHelper(uint position) { SWIGTYPE_p_unsigned_int ret = new SWIGTYPE_p_unsigned_int(RakNetPINVOKE.RakNetListUnsignedInt_GetHelper(swigCPtr, position), false); return ret; } public void Push(uint input, string file, uint line) { RakNetPINVOKE.RakNetListUnsignedInt_Push(swigCPtr, input, file, line); } private SWIGTYPE_p_unsigned_int PopHelper() { SWIGTYPE_p_unsigned_int ret = new SWIGTYPE_p_unsigned_int(RakNetPINVOKE.RakNetListUnsignedInt_PopHelper(swigCPtr), false); return ret; } public void Insert(uint input, uint position, string file, uint line) { RakNetPINVOKE.RakNetListUnsignedInt_Insert__SWIG_0(swigCPtr, input, position, file, line); } public void Insert(uint input, string file, uint line) { RakNetPINVOKE.RakNetListUnsignedInt_Insert__SWIG_1(swigCPtr, input, file, line); } public void Replace(uint input, uint filler, uint position, string file, uint line) { RakNetPINVOKE.RakNetListUnsignedInt_Replace__SWIG_0(swigCPtr, input, filler, position, file, line); } public void Replace(uint input) { RakNetPINVOKE.RakNetListUnsignedInt_Replace__SWIG_1(swigCPtr, input); } public void RemoveAtIndex(uint position) { RakNetPINVOKE.RakNetListUnsignedInt_RemoveAtIndex(swigCPtr, position); } public void RemoveAtIndexFast(uint position) { RakNetPINVOKE.RakNetListUnsignedInt_RemoveAtIndexFast(swigCPtr, position); } public void RemoveFromEnd(uint num) { RakNetPINVOKE.RakNetListUnsignedInt_RemoveFromEnd__SWIG_0(swigCPtr, num); } public void RemoveFromEnd() { RakNetPINVOKE.RakNetListUnsignedInt_RemoveFromEnd__SWIG_1(swigCPtr); } public uint GetIndexOf(uint input) { uint ret = RakNetPINVOKE.RakNetListUnsignedInt_GetIndexOf(swigCPtr, input); return ret; } public uint Size() { uint ret = RakNetPINVOKE.RakNetListUnsignedInt_Size(swigCPtr); return ret; } public void Clear(bool doNotDeallocateSmallBlocks, string file, uint line) { RakNetPINVOKE.RakNetListUnsignedInt_Clear(swigCPtr, doNotDeallocateSmallBlocks, file, line); } public void Preallocate(uint countNeeded, string file, uint line) { RakNetPINVOKE.RakNetListUnsignedInt_Preallocate(swigCPtr, countNeeded, file, line); } public void Compress(string file, uint line) { RakNetPINVOKE.RakNetListUnsignedInt_Compress(swigCPtr, file, line); } } }