![]() |
Fun 0.41.5
The programming language that makes you have fun!
|
libcurl helpers and buffers used by HTTP-related VM opcodes. More...
#include <curl/curl.h>Go to the source code of this file.
Data Structures | |
| struct | FunCurlBuf |
| Simple growable buffer for libcurl write callbacks. More... | |
Functions | |
| static size_t | fun_curl_write_cb (void *ptr, size_t sz, size_t nm, void *ud) |
| libcurl write callback that appends data to a FunCurlBuf. | |
| static size_t | fun_curl_file_write_cb (void *ptr, size_t sz, size_t nm, void *ud) |
| libcurl write callback that writes directly to a FILE*. | |
libcurl helpers and buffers used by HTTP-related VM opcodes.
Declares small buffer helpers and libcurl write callbacks that support network-related opcodes when FUN_WITH_CURL is enabled.
Definition in file curl.c.
|
static |
libcurl write callback that writes directly to a FILE*.
| ptr | Pointer to incoming data. |
| sz | Size of each element. |
| nm | Number of elements. |
| ud | User data; must be a FILE* opened for writing in binary mode. |
|
static |
libcurl write callback that appends data to a FunCurlBuf.
Reallocates the destination buffer as needed and keeps it NUL-terminated.
| ptr | Pointer to incoming data block provided by libcurl. |
| sz | Size of each data element. |
| nm | Number of elements in this block. |
| ud | User data; must be a FunCurlBuf*. |