[][src]Function spatialite_sys::gaiaXmlFromBlob

pub unsafe extern "C" fn gaiaXmlFromBlob(
    blob: *const c_uchar,
    size: c_int,
    indent: c_int,
    result: *mut *mut c_uchar,
    res_size: *mut c_int
)

Extract an XMLDocument from within an XmlBLOB buffer

\param blob pointer to the XmlBLOB buffer. \param size XmlBLOB's size (in bytes). \param indent if a negative value is passed the XMLDocument will be extracted exactly as it was when loaded. Otherwise it will be properly formatted using the required intenting (max. 8); ZERO means that the whole XML Document will consist of a single line. \param result pointer to the memory buffer containing the XML Document \param res_size dimension (in bytes) of the XML Document memory buffer (both values will be passed back after successful completion).

\sa gaiaXmlToBlob, gaiaXmlTextFromBlob

\note the returned XMLDocument will always respect the internal encoding declaration, and may not support any further processing as SQLite TEXT if it's not UTF-8.

\note the XMLDocument buffer corresponds to dynamically allocated memory: so you are responsible to free() it before or after.