(default)
Class CefByteReadHandler
CefBase
|
+--CefReadHandler
|
+--CefByteReadHandler
in cef_wrapper.h
- class CefByteReadHandler
- extends CefReadHandler
Thread safe implementation of the CefReadHandler class for reading an
in-memory array of bytes.
|
Method Summary |
virtual int |
Eof()
Return non-zero if at end of file. |
virtual size_t |
Read( void* ptr, size_t size, size_t n )
Read raw binary data. |
virtual int |
Seek( long offset, int whence )
Seek to the specified offset position. |
virtual long |
Tell()
Return the current offset position. |
CefByteReadHandler
public CefByteReadHandler( const unsigned char* bytes, size_t size, CefRefPtr< CefBase > source );
- Create a new object for reading an array of bytes. An optional |source|
reference can be kept to keep the underlying data source from being
released while the reader exists.
Eof
public virtual int Eof();
- Return non-zero if at end of file.
Read
public virtual size_t Read( void* ptr, size_t size, size_t n );
- Read raw binary data.
Seek
public virtual int Seek( long offset, int whence );
- Seek to the specified offset position. |whence| may be any one of
SEEK_CUR, SEEK_END or SEEK_SET.
Tell
public virtual long Tell();
- Return the current offset position.
Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt