Chromium Embedded Framework (CEF)
130.1.2+g48f3ef6+chromium-130.0.6723.44
|
Thread safe implementation of the CefReadHandler class for reading an in-memory array of bytes. More...
#include "include/wrapper/cef_byte_read_handler.h"
Public Member Functions | |
CefByteReadHandler (const unsigned char *bytes, size_t size, CefRefPtr< CefBaseRefCounted > source) | |
Create a new object for reading an array of bytes. More... | |
CefByteReadHandler (const CefByteReadHandler &)=delete | |
CefByteReadHandler & | operator= (const CefByteReadHandler &)=delete |
size_t | Read (void *ptr, size_t size, size_t n) override |
Read raw binary data. More... | |
int | Seek (int64_t offset, int whence) override |
Seek to the specified offset position. More... | |
int64_t | Tell () override |
Return the current offset position. More... | |
int | Eof () override |
Return non-zero if at end of file. More... | |
bool | MayBlock () override |
Return true if this handler performs work like accessing the file system which may block. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~CefBaseRefCounted () |
Thread safe implementation of the CefReadHandler class for reading an in-memory array of bytes.
CefByteReadHandler::CefByteReadHandler | ( | const unsigned char * | bytes, |
size_t | size, | ||
CefRefPtr< CefBaseRefCounted > | 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.
|
delete |
|
overridevirtual |
Return non-zero if at end of file.
Implements CefReadHandler.
|
inlineoverridevirtual |
Return true 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.
Implements CefReadHandler.
|
delete |
|
overridevirtual |
Read raw binary data.
Implements CefReadHandler.
|
overridevirtual |
Seek to the specified offset position.
|whence| may be any one of SEEK_CUR, SEEK_END or SEEK_SET. Return zero on success and non-zero on failure.
Implements CefReadHandler.
|
overridevirtual |
Return the current offset position.
Implements CefReadHandler.