[][src]Function ejdb_sys::bson_strip

pub unsafe extern "C" fn bson_strip(
    ifields: *mut TCMAP,
    imode: bool,
    bsbuf: *const c_void,
    bsout: *mut bson,
    matched: *mut c_int
) -> c_int

Include or exclude fpaths in the specified BSON and put resulting data into bsout. On completion it finishes bsout object.

@param ifields Map of fieldpaths. Map values are a simple boolean bufs. @param imode If true fpaths will be included. Otherwise fpaths will be excluded from bson. @param bsbuf BSON buffer to process. @param bsout Allocated and not finished output bson* object @param matched[out] Number of matched include/exclude fieldpaths. @return BSON error code