[][src]Function ejdb_sys::bson2json

pub unsafe extern "C" fn bson2json(
    bsdata: *const c_char,
    buf: *mut *mut c_char,
    sp: *mut c_int
) -> c_int

Convert BSON into JSON buffer.

A caller should free an allocated *buf if value of *buf is not NULL after function completion.

@param src BSON data @param buf Allocated buffer with resulting JSON data @param sp JSON data length will be stored into @return BSON_OK or BSON_ERROR