cef_stream_writer_t

Type Alias cef_stream_writer_t 

Source
pub type cef_stream_writer_t = _cef_stream_writer_t;
Expand description

Structure used to write data to a stream. 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_stream_writer_t { pub base: _cef_base_ref_counted_t, pub write: Option<unsafe extern "C" fn(*mut _cef_stream_writer_t, *const c_void, usize, usize) -> usize>, pub seek: Option<unsafe extern "C" fn(*mut _cef_stream_writer_t, i64, i32) -> i32>, pub tell: Option<unsafe extern "C" fn(*mut _cef_stream_writer_t) -> i64>, pub flush: Option<unsafe extern "C" fn(*mut _cef_stream_writer_t) -> i32>, pub may_block: Option<unsafe extern "C" fn(*mut _cef_stream_writer_t) -> i32>, }

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§write: Option<unsafe extern "C" fn(*mut _cef_stream_writer_t, *const c_void, usize, usize) -> usize>

Write raw binary data.

§seek: Option<unsafe extern "C" fn(*mut _cef_stream_writer_t, i64, i32) -> i32>

Seek to the specified offset position. |whence| may be any one of SEEK_CUR, SEEK_END or SEEK_SET. Returns zero on success and non-zero on failure.

§tell: Option<unsafe extern "C" fn(*mut _cef_stream_writer_t) -> i64>

Return the current offset position.

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

Flush the stream.

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

Returns true (1) if this writer performs work like accessing the file system which may block. Used as a hint for determining the thread to access the writer from.