v8  7.9.317(node13.2.0)
V8 is Google's open source JavaScript engine
BackingStore Class Reference

#include <v8.h>

Inheritance diagram for BackingStore:
Collaboration diagram for BackingStore:

Public Member Functions

 ~BackingStore ()
void * Data () const
size_t ByteLength () const

Detailed Description

A wrapper around the backing store (i.e. the raw memory) of an array buffer.

The allocation and destruction of backing stores is generally managed by V8. Clients should always use standard C++ memory ownership types (i.e. std::unique_ptr and std::shared_ptr) to manage lifetimes of backing stores properly, since V8 internal objects may alias backing stores.

Definition at line 4831 of file v8.h.

Constructor & Destructor Documentation

◆ ~BackingStore()

Member Function Documentation

◆ ByteLength()

size_t ByteLength ( ) const

The length (in bytes) of this backing store.

◆ Data()

void* Data ( ) const

Return a pointer to the beginning of the memory block for this backing store. The pointer is only valid as long as this backing store object lives.

The documentation for this class was generated from the following file: