Пример #1
0
        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);
        }
Пример #2
0
 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);
 }
Пример #3
0
 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));
 }