Chromium Embedded Framework (CEF)  126.2.0+g5c56e98+chromium-126.0.6478.62
CefBinaryValue Class Referenceabstract

Class representing a binary value. More...

#include "include/cef_values.h"

Inheritance diagram for CefBinaryValue:
CefBaseRefCounted

Public Member Functions

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< CefBinaryValueCopy ()=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...
 
- 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...
 

Static Public Member Functions

static CefRefPtr< CefBinaryValueCreate (const void *data, size_t data_size)
 Creates a new object that is not owned by any other object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Class representing a binary value.

Can be used on any process and thread.

Member Function Documentation

◆ Copy()

virtual CefRefPtr<CefBinaryValue> CefBinaryValue::Copy ( )
pure virtual

Returns a copy of this object.

The data in this object will also be copied.

◆ Create()

static CefRefPtr<CefBinaryValue> CefBinaryValue::Create ( const void *  data,
size_t  data_size 
)
static

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

Returns the data size.

◆ IsEqual()

virtual bool CefBinaryValue::IsEqual ( CefRefPtr< CefBinaryValue that)
pure virtual

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

virtual bool CefBinaryValue::IsSame ( CefRefPtr< CefBinaryValue that)
pure virtual

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: