Function bson_init_data

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

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.