pub type cef_stream_reader_t = _cef_stream_reader_t;Expand description
Structure used to read data from 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_reader_t {
pub base: _cef_base_ref_counted_t,
pub read: Option<unsafe extern "C" fn(*mut _cef_stream_reader_t, *mut c_void, usize, usize) -> usize>,
pub seek: Option<unsafe extern "C" fn(*mut _cef_stream_reader_t, i64, i32) -> i32>,
pub tell: Option<unsafe extern "C" fn(*mut _cef_stream_reader_t) -> i64>,
pub eof: Option<unsafe extern "C" fn(*mut _cef_stream_reader_t) -> i32>,
pub may_block: Option<unsafe extern "C" fn(*mut _cef_stream_reader_t) -> i32>,
}Fields§
§base: _cef_base_ref_counted_tBase structure.
read: Option<unsafe extern "C" fn(*mut _cef_stream_reader_t, *mut c_void, usize, usize) -> usize>Read raw binary data.
seek: Option<unsafe extern "C" fn(*mut _cef_stream_reader_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_reader_t) -> i64>Return the current offset position.
eof: Option<unsafe extern "C" fn(*mut _cef_stream_reader_t) -> i32>Return non-zero if at end of file.
may_block: Option<unsafe extern "C" fn(*mut _cef_stream_reader_t) -> i32>Returns true (1) if this reader performs work like accessing the file system which may block. Used as a hint for determining the thread to access the reader from.