Пример #1
0
 public static cef_string_userfree* get_file(cef_post_data_element_t* self)
 {
     get_file_delegate d;
     var p = self->_get_file;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (get_file_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_file_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     return d(self);
 }
Пример #2
0
 public static UIntPtr get_bytes_count(cef_post_data_element_t* self)
 {
     get_bytes_count_delegate d;
     var p = self->_get_bytes_count;
     if (p == _p9) { d = _d9; }
     else
     {
         d = (get_bytes_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_bytes_count_delegate));
         if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; }
     }
     return d(self);
 }
Пример #3
0
 public static void set_to_bytes(cef_post_data_element_t* self, UIntPtr size, void* bytes)
 {
     set_to_bytes_delegate d;
     var p = self->_set_to_bytes;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (set_to_bytes_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_to_bytes_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     d(self, size, bytes);
 }
Пример #4
0
 public static CefPostDataElementType get_type(cef_post_data_element_t* self)
 {
     get_type_delegate d;
     var p = self->_get_type;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (get_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_type_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self);
 }
Пример #5
0
 public static void set_to_empty(cef_post_data_element_t* self)
 {
     set_to_empty_delegate d;
     var p = self->_set_to_empty;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (set_to_empty_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_to_empty_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     d(self);
 }
Пример #6
0
 public static void set_to_file(cef_post_data_element_t* self, cef_string_t* fileName)
 {
     set_to_file_delegate d;
     var p = self->_set_to_file;
     if (p == _p5) { d = _d5; }
     else
     {
         d = (set_to_file_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_to_file_delegate));
         if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; }
     }
     d(self, fileName);
 }
Пример #7
0
 public static int has_one_ref(cef_post_data_element_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);
 }
Пример #8
0
 public static int remove_element(cef_post_data_t* self, cef_post_data_element_t* element)
 {
     remove_element_delegate d;
     var p = self->_remove_element;
     if (p == _p6) { d = _d6; }
     else
     {
         d = (remove_element_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(remove_element_delegate));
         if (_p6 == IntPtr.Zero) { _d6 = d; _p6 = p; }
     }
     return d(self, element);
 }
Пример #9
0
 private CefPostDataElement(cef_post_data_element_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
Пример #10
0
 public static int release(cef_post_data_element_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);
 }
Пример #11
0
 internal static CefPostDataElement FromNativeOrNull(cef_post_data_element_t* ptr)
 {
     if (ptr == null) return null;
     return new CefPostDataElement(ptr);
 }
Пример #12
0
 internal static CefPostDataElement FromNative(cef_post_data_element_t* ptr)
 {
     return new CefPostDataElement(ptr);
 }
Пример #13
0
 public static int add_element(cef_post_data_t* self, cef_post_data_element_t* element)
 {
     add_element_delegate d;
     var p = self->_add_element;
     if (p == _p7) { d = _d7; }
     else
     {
         d = (add_element_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_element_delegate));
         if (_p7 == IntPtr.Zero) { _d7 = d; _p7 = p; }
     }
     return d(self, element);
 }
Пример #14
0
 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);
 }
Пример #15
0
 public static int is_read_only(cef_post_data_element_t* self)
 {
     is_read_only_delegate d;
     var p = self->_is_read_only;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (is_read_only_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_read_only_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     return d(self);
 }
Пример #16
0
 public static void add_ref(cef_post_data_element_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);
 }
Пример #17
0
 public static void get_elements(cef_post_data_t* self, UIntPtr* elementsCount, cef_post_data_element_t** elements)
 {
     get_elements_delegate d;
     var p = self->_get_elements;
     if (p == _p5) { d = _d5; }
     else
     {
         d = (get_elements_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_elements_delegate));
         if (_p5 == IntPtr.Zero) { _d5 = d; _p5 = p; }
     }
     d(self, elementsCount, elements);
 }