gpAux/extensions/gps3ext/src/s3restful_service.cpp
size_t RESTfulServiceWriteFuncCallback(char *ptr, size_t size, size_t nmemb, void *userp) {
    if (QueryCancelPending) {
        return -1;
    }

    size_t realsize = size * nmemb;
    Response *resp = (Response *)userp;
    resp->appendDataBuffer(ptr, realsize);
    return realsize;
}
// curl's write function callback.
curl's write function callback.
curl ' s write function callback .
size_t RESTfulServiceWriteFuncCallback(char *ptr, size_t size, size_t nmemb, void *userp) {
    if (QueryCancelPending) {
        return -1;
    }
    size_t realsize = size * nmemb;
    Response *resp = (Response *)userp;
    resp->appendDataBuffer(ptr, realsize);
    return realsize;
}
size_t RESTfulServiceWriteFuncCallback ( char * ptr , size_t size , size_t nmemb , void * userp ) { if ( QueryCancelPending ) { return -1 ; } size_t realsize = size * nmemb ; Response * resp = ( Response * ) userp ; resp -> appendDataBuffer ( ptr , realsize ) ; return realsize ; }
curl's write function callback.
curl ' s write function callback .