The OpenD Programming Language

cef_stream_writer_t

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

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

flush
int function(cef_stream_writer_t* self) nothrow flush;

Flush the stream.

may_block
int function(cef_stream_writer_t* self) nothrow may_block;

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.

seek
int function(cef_stream_writer_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_writer_t* self) nothrow tell;

Return the current offset position.

write
size_t function(cef_stream_writer_t* self, const(void)* ptr, size_t size, size_t n) nothrow write;

Write raw binary data.

Meta