コード例 #1
0
ファイル: CefBinaryValue.g.cs プロジェクト: whztt07/SDK
 public void Dispose()
 {
     if (_self != null)
     {
         Release();
         _self = null;
     }
     GC.SuppressFinalize(this);
 }
コード例 #2
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));
        }
コード例 #3
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));
        }
コード例 #4
0
        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));
        }
コード例 #5
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));
        }
コード例 #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));
        }
コード例 #7
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));
        }
コード例 #8
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));
        }
コード例 #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));
        }
コード例 #10
0
        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));
        }
コード例 #11
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 == _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));
        }
コード例 #12
0
ファイル: cef_value_t.cs プロジェクト: wuzlai/AGTkDemo
 public unsafe extern int SetBinary(cef_binary_value_t *value);
コード例 #13
0
 internal static CefBinaryValue FromNative(cef_binary_value_t *ptr)
 {
     return(new CefBinaryValue(ptr));
 }
コード例 #14
0
 /// <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
 }
コード例 #15
0
 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
 }
コード例 #17
0
 /// <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
 }
コード例 #18
0
 public unsafe extern int IsEqual(cef_binary_value_t *that);
コード例 #19
0
ファイル: CefBinaryValue.cs プロジェクト: wuzlai/AGTkDemo
 public CefBinaryValue(cef_binary_value_t *instance)
     : base((cef_base_ref_counted_t *)instance)
 {
 }
コード例 #20
0
ファイル: CefBinaryValue.g.cs プロジェクト: whztt07/SDK
 private CefBinaryValue(cef_binary_value_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
コード例 #21
0
 public unsafe extern int IsSame(cef_binary_value_t *that);
コード例 #22
0
 public unsafe extern int SetBinary([Immutable] cef_string_t *key, cef_binary_value_t *value);