public static UIntPtr get_bytes(cef_post_data_element_t *self, UIntPtr size, void *bytes) { get_bytes_delegate d; var p = self->_get_bytes; if (p == _pa) { d = _da; } else { d = (get_bytes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_bytes_delegate)); if (_pa == IntPtr.Zero) { _da = d; _pa = p; } } return(d(self, size, bytes)); }
public static UIntPtr get_bytes(cef_post_data_element_t* self, UIntPtr size, void* bytes) { get_bytes_delegate d; var p = self->_get_bytes; if (p == _pa) { d = _da; } else { d = (get_bytes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_bytes_delegate)); if (_pa == IntPtr.Zero) { _da = d; _pa = p; } } return d(self, size, bytes); }