public static long get_total_bytes(cef_download_item_t *self) { get_total_bytes_delegate d; var p = self->_get_total_bytes; if (p == _p9) { d = _d9; } else { d = (get_total_bytes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_total_bytes_delegate)); if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; } } return(d(self)); }
public static long get_total_bytes(cef_download_item_t* self) { get_total_bytes_delegate d; var p = self->_get_total_bytes; if (p == _p9) { d = _d9; } else { d = (get_total_bytes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_total_bytes_delegate)); if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; } } return d(self); }