public static int get_data_resource(cef_resource_bundle_t *self, int resource_id, void **data, UIntPtr *data_size) { get_data_resource_delegate d; var p = self->_get_data_resource; if (p == _p4) { d = _d4; } else { d = (get_data_resource_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_data_resource_delegate)); if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; } } return(d(self, resource_id, data, data_size)); }
public static cef_binary_value_t *get_data_resource(cef_resource_bundle_t *self, int resource_id) { get_data_resource_delegate d; var p = self->_get_data_resource; if (p == _p5) { d = _d5; } else { d = (get_data_resource_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_data_resource_delegate)); if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; } } return(d(self, resource_id)); }