V8  latest master commit
V8 is Google's open source JavaScript engine
v8::SharedArrayBuffer::Contents Class Reference

#include <v8.h>

Public Types

using Allocator = v8::ArrayBuffer::Allocator
 
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
 

Friends

class SharedArrayBuffer
 

Detailed Description

The contents of an |SharedArrayBuffer|. Externalization of |SharedArrayBuffer| 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 5584 of file v8.h.

Member Typedef Documentation

◆ Allocator

◆ DeleterCallback

using v8::SharedArrayBuffer::Contents::DeleterCallback = void (*)(void* buffer, size_t length, void* info)

Definition at line 5587 of file v8.h.

Constructor & Destructor Documentation

◆ Contents()

v8::SharedArrayBuffer::Contents::Contents ( )
inline

Definition at line 5589 of file v8.h.

Member Function Documentation

◆ AllocationBase()

void* v8::SharedArrayBuffer::Contents::AllocationBase ( ) const
inline

Definition at line 5598 of file v8.h.

◆ AllocationLength()

size_t v8::SharedArrayBuffer::Contents::AllocationLength ( ) const
inline

Definition at line 5599 of file v8.h.

◆ AllocationMode()

Allocator::AllocationMode v8::SharedArrayBuffer::Contents::AllocationMode ( ) const
inline

Definition at line 5600 of file v8.h.

◆ ByteLength()

size_t v8::SharedArrayBuffer::Contents::ByteLength ( ) const
inline

Definition at line 5605 of file v8.h.

◆ Data()

void* v8::SharedArrayBuffer::Contents::Data ( ) const
inline

Definition at line 5604 of file v8.h.

◆ Deleter()

DeleterCallback v8::SharedArrayBuffer::Contents::Deleter ( ) const
inline

Definition at line 5606 of file v8.h.

◆ DeleterData()

void* v8::SharedArrayBuffer::Contents::DeleterData ( ) const
inline

Definition at line 5607 of file v8.h.

Friends And Related Function Documentation

◆ SharedArrayBuffer

friend class SharedArrayBuffer
friend

Definition at line 5623 of file v8.h.


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