Beispiel #1
0
        public static UplinkError uplink_upload_abort(UplinkUpload upload)
        {
            global::System.IntPtr cPtr = storj_uplinkPINVOKE.uplink_upload_abort(UplinkUpload.getCPtr(upload));
            UplinkError           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UplinkError(cPtr, false);

            return(ret);
        }
Beispiel #2
0
        public static UplinkError uplink_upload_set_custom_metadata(UplinkUpload upload, UplinkCustomMetadata custom)
        {
            global::System.IntPtr cPtr = storj_uplinkPINVOKE.uplink_upload_set_custom_metadata(UplinkUpload.getCPtr(upload), UplinkCustomMetadata.getCPtr(custom));
            UplinkError           ret  = (cPtr == global::System.IntPtr.Zero) ? null : new UplinkError(cPtr, false);

            if (storj_uplinkPINVOKE.SWIGPendingException.Pending)
            {
                throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Beispiel #3
0
        public static UplinkObjectResult uplink_upload_info(UplinkUpload upload)
        {
            UplinkObjectResult ret = new UplinkObjectResult(storj_uplinkPINVOKE.uplink_upload_info(UplinkUpload.getCPtr(upload)), true);

            return(ret);
        }
Beispiel #4
0
        public static UplinkWriteResult uplink_upload_write(UplinkUpload upload, SWIGTYPE_p_void bytes, uint length)
        {
            UplinkWriteResult ret = new UplinkWriteResult(storj_uplinkPINVOKE.uplink_upload_write(UplinkUpload.getCPtr(upload), SWIGTYPE_p_void.getCPtr(bytes), length), true);

            return(ret);
        }
Beispiel #5
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UplinkUpload obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }