V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
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

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.

This API is experimental and may change significantly.

Definition at line 4978 of file v8.h.


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