Exemple #1
0
        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);
        }
Exemple #2
0
        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();
            }
        }
Exemple #3
0
 internal static extern void EasyCleanup(this CurlHandle handle);
Exemple #4
0
 internal static extern void EasyReset(this CurlHandle handle);
Exemple #5
0
 internal static extern CurlCode EasyPerform(this CurlHandle handle);
Exemple #6
0
 internal static extern CurlCode EasyGetInfo(this CurlHandle handle, CurlInfo info, out double value);
Exemple #7
0
 internal static extern CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, ProgressFunctionCallback value);
Exemple #8
0
 internal static extern CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, ShareHandle value);
Exemple #9
0
 internal static extern CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, IntPtr value);
Exemple #10
0
 internal static extern CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, IpResolveMode value);
Exemple #11
0
 internal static CurlCode EasySetOpt(this CurlHandle handle, CurlOption option, bool value)
 {
     return(EasySetOpt(handle, option, value ? 1 : 0));
 }