public static void uplink_free_read_result(UplinkReadResult result) { storj_uplinkPINVOKE.uplink_free_read_result(UplinkReadResult.getCPtr(result)); if (storj_uplinkPINVOKE.SWIGPendingException.Pending) { throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve(); } }
public static UplinkReadResult uplink_download_read(UplinkDownload download, SWIGTYPE_p_void bytes, uint length) { UplinkReadResult ret = new UplinkReadResult(storj_uplinkPINVOKE.uplink_download_read(UplinkDownload.getCPtr(download), SWIGTYPE_p_void.getCPtr(bytes), length), true); return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UplinkReadResult obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }