int32_t HttpNative_EasySetOptionLong(CURL* handle, PAL_CURLoption option, int64_t value) { CURLoption curlOpt = ConvertOption(option); // The HttpNative_EasySetOptionLong entrypoint is used for both curl_easy_setopt(..., long) and // curl_easy_setopt(..., curl_off_t). As they'll likely be different sizes on 32-bit platforms, // we map anything >= CurlOptionOffTBase to use curl_off_t. if (option >= CurlOptionOffTBase) { return (int32_t)(curl_easy_setopt(handle, curlOpt, (curl_off_t)value)); } else { return (int32_t)(curl_easy_setopt(handle, curlOpt, (long)value)); } }
int32_t HttpNative_EasySetOptionPointer(CURL* handle, PAL_CURLoption option, void* value) { return (int32_t)(curl_easy_setopt(handle, ConvertOption(option), value)); }
int32_t HttpNative_EasySetOptionString(CURL* handle, PAL_CURLoption option, const char* value) { return (int32_t)(curl_easy_setopt(handle, ConvertOption(option), value)); }
extern "C" int32_t HttpNative_EasySetOptionLong(CURL* handle, PAL_CURLoption option, int64_t value) { return curl_easy_setopt(handle, ConvertOption(option), value); }