Beispiel #1
0
 public static void add_ref(cef_post_data_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);
 }
Beispiel #2
0
 private CefPostData(cef_post_data_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
Beispiel #3
0
 internal static CefPostData FromNativeOrNull(cef_post_data_t* ptr)
 {
     if (ptr == null) return null;
     return new CefPostData(ptr);
 }
Beispiel #4
0
 internal static CefPostData FromNative(cef_post_data_t* ptr)
 {
     return new CefPostData(ptr);
 }
Beispiel #5
0
 public static void remove_elements(cef_post_data_t* self)
 {
     remove_elements_delegate d;
     var p = self->_remove_elements;
     if (p == _p8) { d = _d8; }
     else
     {
         d = (remove_elements_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(remove_elements_delegate));
         if (_p8 == IntPtr.Zero) { _d8 = d; _p8 = p; }
     }
     d(self);
 }
Beispiel #6
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);
 }
Beispiel #7
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);
 }
Beispiel #8
0
 public static UIntPtr get_element_count(cef_post_data_t* self)
 {
     get_element_count_delegate d;
     var p = self->_get_element_count;
     if (p == _p4) { d = _d4; }
     else
     {
         d = (get_element_count_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_element_count_delegate));
         if (_p4 == IntPtr.Zero) { _d4 = d; _p4 = p; }
     }
     return d(self);
 }
Beispiel #9
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);
 }
Beispiel #10
0
 public static int is_read_only(cef_post_data_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);
 }
Beispiel #11
0
 public static int has_one_ref(cef_post_data_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);
 }
Beispiel #12
0
 public static int release(cef_post_data_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);
 }
Beispiel #13
0
 public static void set(cef_request_t* self, cef_string_t* url, cef_string_t* method, cef_post_data_t* postData, cef_string_multimap* headerMap)
 {
     set_delegate d;
     var p = self->_set;
     if (p == _pc) { d = _dc; }
     else
     {
         d = (set_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_delegate));
         if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
     }
     d(self, url, method, postData, headerMap);
 }
Beispiel #14
0
 public static void set_post_data(cef_request_t* self, cef_post_data_t* postData)
 {
     set_post_data_delegate d;
     var p = self->_set_post_data;
     if (p == _p9) { d = _d9; }
     else
     {
         d = (set_post_data_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_post_data_delegate));
         if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; }
     }
     d(self, postData);
 }