pub type RBufferGetWholeBuf = Option<unsafe extern "C" fn(b: *mut RBuffer, sz: *mut c_ulonglong) -> *mut c_uchar>;