Example #1
0
        internal static HandleRef getCPtr(FileProgressStruct obj)
        {
            if (obj != null)
            {
                if (obj.firstDataChunkIsCached)
                {
                    obj.SetFirstDataChunk(obj.firstDataChunk, obj.firstDataChunk.Length);
                }
                if (obj.iriDataChunkIsCached)
                {
                    obj.SetIriDataChunk(obj.iriDataChunk, obj.iriDataChunk.Length);
                }
                obj.firstDataChunkIsCached = false;
                obj.iriDataChunkIsCached   = false;
            }

            return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
        }
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(FileProgressStruct obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }