Ejemplo n.º 1
0
 public static void 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; }
     }
     d(self);
 }
Ejemplo n.º 2
0
 internal static CefBinaryValue FromNativeOrNull(cef_binary_value_t* ptr)
 {
     if (ptr == null) return null;
     return new CefBinaryValue(ptr);
 }
Ejemplo n.º 3
0
 internal static CefBinaryValue FromNative(cef_binary_value_t* ptr)
 {
     return new CefBinaryValue(ptr);
 }
Ejemplo n.º 4
0
 private CefBinaryValue(cef_binary_value_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 7
0
 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);
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 9
0
 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);
 }
Ejemplo n.º 10
0
 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);
 }
Ejemplo n.º 11
0
 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);
 }
Ejemplo n.º 12
0
 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 == _p19) { d = _d19; }
     else
     {
         d = (set_binary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_binary_delegate));
         if (_p19 == IntPtr.Zero) { _d19 = d; _p19 = p; }
     }
     return d(self, key, value);
 }