v8  6.8.275 (node 10.15.3)
V8 is Google's open source JavaScript engine
SharedArrayBuffer::Contents Class Reference

#include <v8.h>

Public Member Functions

 Contents ()
 
void * AllocationBase () const
 
size_t AllocationLength () const
 
ArrayBuffer::Allocator::AllocationMode AllocationMode () const
 
void * Data () const
 
size_t ByteLength () 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 SharedArrayBuffer::Contents is always allocated with |ArrayBuffer::Allocator::Allocate| by the allocator specified in v8::Isolate::CreateParams::array_buffer_allocator.

This API is experimental and may change significantly.

Definition at line 4901 of file v8.h.

Constructor & Destructor Documentation

◆ Contents()

Contents ( )
inline

Definition at line 4903 of file v8.h.

References ArrayBuffer::Allocator::kNormal.

Member Function Documentation

◆ AllocationBase()

void* AllocationBase ( ) const
inline

Definition at line 4910 of file v8.h.

◆ AllocationLength()

size_t AllocationLength ( ) const
inline

Definition at line 4911 of file v8.h.

◆ AllocationMode()

ArrayBuffer::Allocator::AllocationMode AllocationMode ( ) const
inline

Definition at line 4912 of file v8.h.

◆ ByteLength()

size_t ByteLength ( ) const
inline

Definition at line 4917 of file v8.h.

◆ Data()

void* Data ( ) const
inline

Definition at line 4916 of file v8.h.

Friends And Related Function Documentation

◆ SharedArrayBuffer

friend class SharedArrayBuffer
friend

Definition at line 4926 of file v8.h.


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