[][src]Function ejdb_sys::bson_init_data

pub unsafe extern "C" fn bson_init_data(
    b: *mut bson,
    data: *mut c_char
) -> c_int

Initialize a BSON object, and point its data pointer to the provided char*.

@param b the BSON object to initialize. @param data the raw BSON data.

@return BSON_OK or BSON_ERROR.