35 int file_write(
void *buffer,
size_t size,
size_t nmemb,
void *stream)
37 oslFileHandle aFile =
reinterpret_cast< oslFileHandle
>(
stream );
41 sal_uInt64 nWritten = 0;
42 sal_uInt64 nToWrite(
size * nmemb );
43 osl_writeFile( aFile, buffer, nToWrite, &nWritten );
45 return nWritten != nToWrite ? 0 : nmemb;
Reference< XOutputStream > stream
int file_write(void *buffer, size_t size, size_t nmemb, void *stream)
callback for curl_easy_perform(), forwarding the written content to the stream.
Definition of ftpcontentprovider.