public override btChunk allocate(uint size, int numElements) { global::System.IntPtr cPtr = BulletPINVOKE.btDefaultSerializer_allocate(swigCPtr, size, numElements); btChunk ret = (cPtr == global::System.IntPtr.Zero) ? null : new btChunk(cPtr, false); return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(btChunk obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
public override void finalizeChunk(btChunk chunk, string structType, int chunkCode, SWIGTYPE_p_void oldPtr) { BulletPINVOKE.btDefaultSerializer_finalizeChunk(swigCPtr, btChunk.getCPtr(chunk), structType, chunkCode, SWIGTYPE_p_void.getCPtr(oldPtr)); }