[][src]Function ejdb_sys::bson_safe_init

pub unsafe extern "C" fn bson_safe_init(b: *mut bson) -> c_int

Initialize a BSON object. If not created with bson_new, you must initialize each new bson object using this function. Report problems with memory allocation.

@param b the BSON object to initialize.

@return BSON_OK or BSON_ERROR.