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

#include <v8.h>

Public Types

using DeleterCallback = void(*)(void *buffer, size_t length, void *info)

Public Member Functions

 Contents ()
void * AllocationBase () const
size_t AllocationLength () const
Allocator::AllocationMode AllocationMode () const
void * Data () const
size_t ByteLength () const
DeleterCallback Deleter () const
void * DeleterData () const


class ArrayBuffer

Detailed Description

The contents of an |ArrayBuffer|. Externalization of |ArrayBuffer| returns an instance of this class, populated, with a pointer to data and byte length.

The Data pointer of ArrayBuffer::Contents must be freed using the provided deleter, which will call ArrayBuffer::Allocator::Free if the buffer was allocated with ArraryBuffer::Allocator::Allocate.

Definition at line 4918 of file v8.h.

Member Typedef Documentation

◆ DeleterCallback

using DeleterCallback = void (*)(void* buffer, size_t length, void* info)

Definition at line 4920 of file v8.h.

Constructor & Destructor Documentation

◆ Contents()

Contents ( )

Definition at line 4922 of file v8.h.

Member Function Documentation

◆ AllocationBase()

void* AllocationBase ( ) const

Definition at line 4931 of file v8.h.

◆ AllocationLength()

size_t AllocationLength ( ) const

Definition at line 4932 of file v8.h.

◆ AllocationMode()

Allocator::AllocationMode AllocationMode ( ) const

Definition at line 4933 of file v8.h.

◆ ByteLength()

size_t ByteLength ( ) const

Definition at line 4938 of file v8.h.

◆ Data()

void* Data ( ) const

Definition at line 4937 of file v8.h.

◆ Deleter()

DeleterCallback Deleter ( ) const

Definition at line 4939 of file v8.h.

◆ DeleterData()

void* DeleterData ( ) const

Definition at line 4940 of file v8.h.

Friends And Related Function Documentation

◆ ArrayBuffer

friend class ArrayBuffer

Definition at line 4956 of file v8.h.

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