Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefStreamReader

CefBaseRefCounted
   |
   +--CefStreamReader

   in cef_stream.h

class CefStreamReader
extends CefBaseRefCounted

Class used to read data from a stream. The methods of this class may be called on any thread.


Method Summary
 static CefRefPtr< CefStreamReader > CreateForData( void* data, size_t size )
          Create a new CefStreamReader object from data.
 static CefRefPtr< CefStreamReader > CreateForFile( const CefString& fileName )
          Create a new CefStreamReader object from a file.
 static CefRefPtr< CefStreamReader > CreateForHandler( CefRefPtr< CefReadHandler > handler )
          Create a new CefStreamReader object from a custom handler.
 virtual int Eof()= 0
          Return non-zero if at end of file.
 virtual bool MayBlock()= 0
          Returns true if this reader performs work like accessing the file system which may block.
 virtual size_t Read( void* ptr, size_t size, size_t n )= 0
          Read raw binary data.
 virtual int Seek( int64 offset, int whence )= 0
          Seek to the specified offset position.
 virtual int64 Tell()= 0
          Return the current offset position.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

CreateForData

public static CefRefPtr< CefStreamReader > CreateForData( void* data, size_t size );
Create a new CefStreamReader object from data.

CreateForFile

public static CefRefPtr< CefStreamReader > CreateForFile( const CefString& fileName );
Create a new CefStreamReader object from a file.

CreateForHandler

public static CefRefPtr< CefStreamReader > CreateForHandler( CefRefPtr< CefReadHandler > handler );
Create a new CefStreamReader object from a custom handler.

Eof

public virtual int Eof()= 0;
Return non-zero if at end of file.

MayBlock

public virtual bool MayBlock()= 0;
Returns true 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

public virtual size_t Read( void* ptr, size_t size, size_t n )= 0;
Read raw binary data.

Seek

public virtual int Seek( int64 offset, int whence )= 0;
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

public virtual int64 Tell()= 0;
Return the current offset position.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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