Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 439
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(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.


Constructor Summary
CefByteReadHandler( const unsigned char* bytes, size_t size, CefRefPtr< CefBase > source )
          Create a new object for reading an 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.
   
Methods inherited from class CefReadHandler
Read, Seek, Tell, Eof
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Constructor Detail

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.


Method Detail

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.

 Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 439
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt