cef_stream_reader_t

Structure used to read data from a stream. The functions of this structure may be called on any thread.

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

eof
int function(cef_stream_reader_t* self) nothrow eof;

Return non-zero if at end of file.

may_block
int function(cef_stream_reader_t* self) nothrow may_block;

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.

read
size_t function(cef_stream_reader_t* self, void* ptr, size_t size, size_t n) nothrow read;

Read raw binary data.

seek
int function(cef_stream_reader_t* self, long offset, int whence) nothrow seek;

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
long function(cef_stream_reader_t* self) nothrow tell;

Return the current offset position.

Meta