public void Dispose() { if (_self != null) { Release(); _self = null; } GC.SuppressFinalize(this); }
public static int has_one_ref(cef_binary_value_t *self) { has_one_ref_delegate d; var p = self->_base._has_one_ref; if (p == _p2) { d = _d2; } else { d = (has_one_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_one_ref_delegate)); if (_p2 == IntPtr.Zero) { _d2 = d; _p2 = p; } } return(d(self)); }
public static int release(cef_binary_value_t *self) { release_delegate d; var p = self->_base._release; if (p == _p1) { d = _d1; } else { d = (release_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(release_delegate)); if (_p1 == IntPtr.Zero) { _d1 = d; _p1 = p; } } return(d(self)); }
public static int add_ref(cef_binary_value_t *self) { add_ref_delegate d; var p = self->_base._add_ref; if (p == _p0) { d = _d0; } else { d = (add_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_ref_delegate)); if (_p0 == IntPtr.Zero) { _d0 = d; _p0 = p; } } return(d(self)); }
public static UIntPtr get_data(cef_binary_value_t *self, void *buffer, UIntPtr buffer_size, UIntPtr data_offset) { get_data_delegate d; var p = self->_get_data; if (p == _p7) { d = _d7; } else { d = (get_data_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_data_delegate)); if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; } } return(d(self, buffer, buffer_size, data_offset)); }
public static UIntPtr get_size(cef_binary_value_t *self) { get_size_delegate d; var p = self->_get_size; if (p == _p6) { d = _d6; } else { d = (get_size_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_size_delegate)); if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; } } return(d(self)); }
public static cef_binary_value_t *copy(cef_binary_value_t *self) { copy_delegate d; var p = self->_copy; if (p == _p5) { d = _d5; } else { d = (copy_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(copy_delegate)); if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; } } return(d(self)); }
public static int set_binary(cef_list_value_t *self, int index, cef_binary_value_t *value) { set_binary_delegate d; var p = self->_set_binary; if (p == _p18) { d = _d18; } else { d = (set_binary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_binary_delegate)); if (_p18 == IntPtr.Zero) { _d18 = d; _p18 = p; } } return(d(self, index, value)); }
public static int is_owned(cef_binary_value_t *self) { is_owned_delegate d; var p = self->_is_owned; if (p == _p4) { d = _d4; } else { d = (is_owned_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_owned_delegate)); if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; } } return(d(self)); }
public static int is_equal(cef_binary_value_t *self, cef_binary_value_t *that) { is_equal_delegate d; var p = self->_is_equal; if (p == _p6) { d = _d6; } else { d = (is_equal_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_equal_delegate)); if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; } } return(d(self, that)); }
public static int set_binary(cef_dictionary_value_t *self, cef_string_t *key, cef_binary_value_t *value) { set_binary_delegate d; var p = self->_set_binary; if (p == _p1d) { d = _d1d; } else { d = (set_binary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_binary_delegate)); if (_p1d == IntPtr.Zero) { _d1d = d; _p1d = p; } } return(d(self, key, value)); }
public unsafe extern int SetBinary(cef_binary_value_t *value);
internal static CefBinaryValue FromNative(cef_binary_value_t *ptr) { return(new CefBinaryValue(ptr)); }
/// <summary> /// Returns true if this object and |that| object have an equivalent underlying /// value but are not necessarily the same object. /// </summary> public int IsEqual(cef_binary_value_t *that) { throw new NotImplementedException(); // TODO: CefBinaryValue.IsEqual }
public unsafe extern int SetBinary(UIntPtr index, cef_binary_value_t *value);
/// <summary> /// Sets the value at the specified key as type binary. Returns true if the /// value was set successfully. If |value| is currently owned by another object /// then the value will be copied and the |value| reference will not change. /// Otherwise, ownership will be transferred to this object and the |value| /// reference will be invalidated. /// </summary> public int SetBinary(cef_string_t *key, cef_binary_value_t *value) { throw new NotImplementedException(); // TODO: CefDictionaryValue.SetBinary }
/// <summary> /// Sets the underlying value as type binary. Returns true if the value was set /// successfully. This object keeps a reference to |value| and ownership of the /// underlying data remains unchanged. /// </summary> public int SetBinary(cef_binary_value_t *value) { throw new NotImplementedException(); // TODO: CefValue.SetBinary }
public unsafe extern int IsEqual(cef_binary_value_t *that);
public CefBinaryValue(cef_binary_value_t *instance) : base((cef_base_ref_counted_t *)instance) { }
private CefBinaryValue(cef_binary_value_t* ptr) { if (ptr == null) throw new ArgumentNullException("ptr"); _self = ptr; }
public unsafe extern int IsSame(cef_binary_value_t *that);
public unsafe extern int SetBinary([Immutable] cef_string_t *key, cef_binary_value_t *value);