[][src]Function paho_mqtt_sys::MQTTAsync_malloc

pub unsafe extern "C" fn MQTTAsync_malloc(size: size_t) -> *mut c_void

This function is used to allocate memory to be used or freed by the MQTT C client library, especially the data in the ::MQTTPersistence_afterRead and ::MQTTPersistence_beforeWrite callbacks. This is needed on Windows when the client library and application program have been compiled with different versions of the C compiler. @param size The size of the memory to be allocated.