Class representing a binary value.
More...
#include "include/cef_values.h"
|
virtual bool | IsValid ()=0 |
| Returns true if this object is valid. More...
|
|
virtual bool | IsOwned ()=0 |
| Returns true if this object is currently owned by another object. More...
|
|
virtual bool | IsSame (CefRefPtr< CefBinaryValue > that)=0 |
| Returns true if this object and |that| object have the same underlying data. More...
|
|
virtual bool | IsEqual (CefRefPtr< CefBinaryValue > that)=0 |
| Returns true if this object and |that| object have an equivalent underlying value but are not necessarily the same object. More...
|
|
virtual CefRefPtr< CefBinaryValue > | Copy ()=0 |
| Returns a copy of this object. More...
|
|
virtual const void * | GetRawData ()=0 |
| Returns a pointer to the beginning of the memory block. More...
|
|
virtual size_t | GetSize ()=0 |
| Returns the data size. More...
|
|
virtual size_t | GetData (void *buffer, size_t buffer_size, size_t data_offset)=0 |
| Read up to |buffer_size| number of bytes into |buffer|. More...
|
|
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...
|
|
Class representing a binary value.
Can be used on any process and thread.
◆ Copy()
Returns a copy of this object.
The data in this object will also be copied.
◆ Create()
Creates a new object that is not owned by any other object.
The specified |data| will be copied.
◆ GetData()
virtual size_t CefBinaryValue::GetData |
( |
void * |
buffer, |
|
|
size_t |
buffer_size, |
|
|
size_t |
data_offset |
|
) |
| |
|
pure virtual |
Read up to |buffer_size| number of bytes into |buffer|.
Reading begins at the specified byte |data_offset|. Returns the number of bytes read.
◆ GetRawData()
virtual const void* CefBinaryValue::GetRawData |
( |
| ) |
|
|
pure virtual |
Returns a pointer to the beginning of the memory block.
The returned pointer is valid as long as the CefBinaryValue is alive.
◆ GetSize()
virtual size_t CefBinaryValue::GetSize |
( |
| ) |
|
|
pure virtual |
◆ IsEqual()
Returns true if this object and |that| object have an equivalent underlying value but are not necessarily the same object.
◆ IsOwned()
virtual bool CefBinaryValue::IsOwned |
( |
| ) |
|
|
pure virtual |
Returns true if this object is currently owned by another object.
◆ IsSame()
Returns true if this object and |that| object have the same underlying data.
◆ IsValid()
virtual bool CefBinaryValue::IsValid |
( |
| ) |
|
|
pure virtual |
Returns true if this object is valid.
This object may become invalid if the underlying data is owned by another object (e.g. list or dictionary) and that other object is then modified or destroyed. Do not call any other methods if this method returns false.
The documentation for this class was generated from the following file: