Skip to main content

cef_post_data_element_t

Type Alias cef_post_data_element_t 

Source
pub type cef_post_data_element_t = _cef_post_data_element_t;
Expand description

Structure used to represent a single element in the request post data. The functions of this structure may be called on any thread.

NOTE: This struct is allocated DLL-side.

Aliased Type§

#[repr(C)]
pub struct cef_post_data_element_t { pub base: _cef_base_ref_counted_t, pub is_read_only: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t) -> i32>, pub set_to_empty: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t)>, pub set_to_file: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t, *const _cef_string_utf16_t)>, pub set_to_bytes: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t, usize, *const c_void)>, pub get_type: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t) -> cef_postdataelement_type_t>, pub get_file: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t) -> *mut _cef_string_utf16_t>, pub get_bytes_count: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t) -> usize>, pub get_bytes: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t, usize, *mut c_void) -> usize>, }

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§is_read_only: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t) -> i32>

Returns true (1) if this object is read-only.

§set_to_empty: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t)>

Remove all contents from the post data element.

§set_to_file: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t, *const _cef_string_utf16_t)>

The post data element will represent a file.

§set_to_bytes: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t, usize, *const c_void)>

The post data element will represent bytes. The bytes passed in will be copied.

§get_type: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t) -> cef_postdataelement_type_t>

Return the type of this post data element.

§get_file: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t) -> *mut _cef_string_utf16_t>

Return the file name.

§get_bytes_count: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t) -> usize>

Return the number of bytes.

§get_bytes: Option<unsafe extern "C" fn(*mut _cef_post_data_element_t, usize, *mut c_void) -> usize>

Read up to |size| bytes into |bytes| and return the number of bytes actually read.