internal static CurlCode EasyGetInfo(this CurlHandle handle, CurlInfo info, out string value) { CurlCode result = EasyGetInfo(handle, info, out IntPtr text); value = MarshalString.NativeToString(text); return(result); }
internal static CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, string value) { IntPtr text = IntPtr.Zero; try { text = MarshalString.StringToNative(value); return(EasySetOpt(handle, option, text)); } finally { text.Free(); } }
internal static extern void EasyCleanup(this CurlHandle handle);
internal static extern void EasyReset(this CurlHandle handle);
internal static extern CurlCode EasyPerform(this CurlHandle handle);
internal static extern CurlCode EasyGetInfo(this CurlHandle handle, CurlInfo info, out double value);
internal static extern CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, ProgressFunctionCallback value);
internal static extern CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, ShareHandle value);
internal static extern CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, IntPtr value);
internal static extern CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, IpResolveMode value);
internal static CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, bool value) { return(EasySetOpt(handle, option, value ? 1 : 0)); }