[][src]Function ejdb_sys::bson_append_code_w_scope_n

pub unsafe extern "C" fn bson_append_code_w_scope_n(
    b: *mut bson,
    name: *const c_char,
    code: *const c_char,
    size: c_int,
    scope: *const bson
) -> c_int

Append len bytes of code to a bson with scope.

@param b the bson to append to. @param name the key for the code. @param str the string to append. @param len the number of bytes from str to append. @param scope a BSON object containing the scope.

@return BSON_OK or BSON_ERROR.