Chromium Embedded Framework (CEF)
121.0.1+g7a4b55f+chromium-121.0.6167.16
|
This class acts as a container for managing binary data. More...
#include "include/wrapper/cef_message_router.h"
Public Member Functions | |
virtual const void * | GetData () const =0 |
Returns the read-only pointer to the memory. More... | |
virtual void * | GetData ()=0 |
Returns the writable pointer to the memory. More... | |
virtual size_t | GetSize () const =0 |
Returns the size of the data. 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 () |
This class acts as a container for managing binary data.
It retains references to the underlying backing store, ensuring it is valid as long as the CefBinaryBuffer exists. This allows efficient, zero-copy access to data received from another process.
This class is not designed to be thread-safe, and it is the user's responsibility to synchronize access from multiple threads to ensure data integrity.
|
pure virtual |
Returns the read-only pointer to the memory.
Returns nullptr if |GetSize()| returns zero. The returned pointer is only valid for the life span of this object.
|
pure virtual |
Returns the writable pointer to the memory.
Returns nullptr if |GetSize()| returns zero. The returned pointer is only valid for the life span of this object.
|
pure virtual |
Returns the size of the data.