The OpenD Programming Language

cef_read_handler_t

Structure the client can implement to provide a custom stream reader. The functions of this structure may be called on any thread.

version(cef && embedded_cef_bindings)
extern (C)
struct cef_read_handler_t {
extern (System)
size_t function(cef_read_handler_t* self, void* ptr, size_t size, size_t n) nothrow read;
extern (System)
int function(cef_read_handler_t* self, long offset, int whence) nothrow seek;
extern (System)
long function(cef_read_handler_t* self) nothrow tell;
}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

eof
int function(cef_read_handler_t* self) nothrow eof;

Return non-zero if at end of file.

may_block
int function(cef_read_handler_t* self) nothrow may_block;

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

Meta