webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
JSC::ArrayBuffer Class Reference

#include <ArrayBuffer.h>

Inheritance diagram for JSC::ArrayBuffer:
JSC::GCIncomingRefCounted< ArrayBuffer > JSC::GCIncomingRefCounted< ArrayBuffer >

Public Member Functions

voiddata ()
 
const voiddata () const
 
unsigned byteLength () const
 
void makeShared ()
 
void setSharingMode (ArrayBufferSharingMode)
 
bool isShared () const
 
ArrayBufferSharingMode sharingMode () const
 
size_t gcSizeEstimateInBytes () const
 
JS_EXPORT_PRIVATE RefPtr< ArrayBufferslice (int begin, int end) const
 
JS_EXPORT_PRIVATE RefPtr< ArrayBufferslice (int begin) const
 
void pin ()
 
void unpin ()
 
void pinAndLock ()
 
JS_EXPORT_PRIVATE bool transferTo (VM &, ArrayBufferContents &)
 
JS_EXPORT_PRIVATE bool shareWith (ArrayBufferContents &)
 
bool isNeutered ()
 
 ~ArrayBuffer ()
 
voiddata ()
 
const voiddata () const
 
unsigned byteLength () const
 
void makeShared ()
 
void setSharingMode (ArrayBufferSharingMode)
 
bool isShared () const
 
ArrayBufferSharingMode sharingMode () const
 
size_t gcSizeEstimateInBytes () const
 
JS_EXPORT_PRIVATE RefPtr< ArrayBufferslice (int begin, int end) const
 
JS_EXPORT_PRIVATE RefPtr< ArrayBufferslice (int begin) const
 
void pin ()
 
void unpin ()
 
void pinAndLock ()
 
JS_EXPORT_PRIVATE bool transferTo (VM &, ArrayBufferContents &)
 
JS_EXPORT_PRIVATE bool shareWith (ArrayBufferContents &)
 
bool isNeutered ()
 
 ~ArrayBuffer ()
 
- Public Member Functions inherited from JSC::GCIncomingRefCounted< ArrayBuffer >
 GCIncomingRefCounted ()
 
 GCIncomingRefCounted ()
 
 ~GCIncomingRefCounted ()
 
 ~GCIncomingRefCounted ()
 
size_t numberOfIncomingReferences () const
 
size_t numberOfIncomingReferences () const
 
JSCellincomingReferenceAt (size_t index) const
 
JSCellincomingReferenceAt (size_t index) const
 
bool addIncomingReference (JSCell *)
 
bool addIncomingReference (JSCell *)
 
bool filterIncomingReferences (FilterFunctionType &)
 
bool filterIncomingReferences (FilterFunctionType &)
 

Static Public Member Functions

static JS_EXPORT_PRIVATE Ref< ArrayBuffercreate (unsigned numElements, unsigned elementByteSize)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreate (ArrayBuffer &)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreate (const void *source, unsigned byteLength)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreate (ArrayBufferContents &&)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreateAdopted (const void *data, unsigned byteLength)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreateFromBytes (const void *data, unsigned byteLength, ArrayBufferDestructorFunction &&)
 
static JS_EXPORT_PRIVATE RefPtr< ArrayBuffertryCreate (unsigned numElements, unsigned elementByteSize)
 
static JS_EXPORT_PRIVATE RefPtr< ArrayBuffertryCreate (ArrayBuffer &)
 
static JS_EXPORT_PRIVATE RefPtr< ArrayBuffertryCreate (const void *source, unsigned byteLength)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreateUninitialized (unsigned numElements, unsigned elementByteSize)
 
static JS_EXPORT_PRIVATE RefPtr< ArrayBuffertryCreateUninitialized (unsigned numElements, unsigned elementByteSize)
 
static ptrdiff_t offsetOfData ()
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreate (unsigned numElements, unsigned elementByteSize)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreate (ArrayBuffer &)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreate (const void *source, unsigned byteLength)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreate (ArrayBufferContents &&)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreateAdopted (const void *data, unsigned byteLength)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreateFromBytes (const void *data, unsigned byteLength, ArrayBufferDestructorFunction &&)
 
static JS_EXPORT_PRIVATE RefPtr< ArrayBuffertryCreate (unsigned numElements, unsigned elementByteSize)
 
static JS_EXPORT_PRIVATE RefPtr< ArrayBuffertryCreate (ArrayBuffer &)
 
static JS_EXPORT_PRIVATE RefPtr< ArrayBuffertryCreate (const void *source, unsigned byteLength)
 
static JS_EXPORT_PRIVATE Ref< ArrayBuffercreateUninitialized (unsigned numElements, unsigned elementByteSize)
 
static JS_EXPORT_PRIVATE RefPtr< ArrayBuffertryCreateUninitialized (unsigned numElements, unsigned elementByteSize)
 
static ptrdiff_t offsetOfData ()
 

Public Attributes

Weak< JSArrayBufferm_wrapper
 

Constructor & Destructor Documentation

◆ ~ArrayBuffer() [1/2]

JSC::ArrayBuffer::~ArrayBuffer ( )
inline

◆ ~ArrayBuffer() [2/2]

JSC::ArrayBuffer::~ArrayBuffer ( )
inline

Member Function Documentation

◆ byteLength() [1/2]

unsigned JSC::ArrayBuffer::byteLength ( ) const
inline

◆ byteLength() [2/2]

unsigned JSC::ArrayBuffer::byteLength ( ) const
inline

◆ create() [1/8]

Ref< ArrayBuffer > JSC::ArrayBuffer::create ( unsigned  numElements,
unsigned  elementByteSize 
)
static

◆ create() [2/8]

static JS_EXPORT_PRIVATE Ref<ArrayBuffer> JSC::ArrayBuffer::create ( unsigned  numElements,
unsigned  elementByteSize 
)
static

◆ create() [3/8]

Ref< ArrayBuffer > JSC::ArrayBuffer::create ( ArrayBuffer other)
static

◆ create() [4/8]

static JS_EXPORT_PRIVATE Ref<ArrayBuffer> JSC::ArrayBuffer::create ( ArrayBuffer )
static

◆ create() [5/8]

Ref< ArrayBuffer > JSC::ArrayBuffer::create ( const void source,
unsigned  byteLength 
)
static

◆ create() [6/8]

static JS_EXPORT_PRIVATE Ref<ArrayBuffer> JSC::ArrayBuffer::create ( const void source,
unsigned  byteLength 
)
static

◆ create() [7/8]

Ref< ArrayBuffer > JSC::ArrayBuffer::create ( ArrayBufferContents &&  contents)
static

◆ create() [8/8]

static JS_EXPORT_PRIVATE Ref<ArrayBuffer> JSC::ArrayBuffer::create ( ArrayBufferContents &&  )
static

◆ createAdopted() [1/2]

static JS_EXPORT_PRIVATE Ref<ArrayBuffer> JSC::ArrayBuffer::createAdopted ( const void data,
unsigned  byteLength 
)
static

◆ createAdopted() [2/2]

Ref< ArrayBuffer > JSC::ArrayBuffer::createAdopted ( const void data,
unsigned  byteLength 
)
static

◆ createFromBytes() [1/2]

static JS_EXPORT_PRIVATE Ref<ArrayBuffer> JSC::ArrayBuffer::createFromBytes ( const void data,
unsigned  byteLength,
ArrayBufferDestructorFunction &&   
)
static

◆ createFromBytes() [2/2]

Ref< ArrayBuffer > JSC::ArrayBuffer::createFromBytes ( const void data,
unsigned  byteLength,
ArrayBufferDestructorFunction &&  destructor 
)
static

◆ createUninitialized() [1/2]

static JS_EXPORT_PRIVATE Ref<ArrayBuffer> JSC::ArrayBuffer::createUninitialized ( unsigned  numElements,
unsigned  elementByteSize 
)
static

◆ createUninitialized() [2/2]

Ref< ArrayBuffer > JSC::ArrayBuffer::createUninitialized ( unsigned  numElements,
unsigned  elementByteSize 
)
static

◆ data() [1/4]

void* JSC::ArrayBuffer::data ( )
inline

◆ data() [2/4]

void * JSC::ArrayBuffer::data ( )
inline

◆ data() [3/4]

const void* JSC::ArrayBuffer::data ( ) const
inline

◆ data() [4/4]

const void * JSC::ArrayBuffer::data ( ) const
inline

◆ gcSizeEstimateInBytes() [1/2]

size_t JSC::ArrayBuffer::gcSizeEstimateInBytes ( ) const
inline

◆ gcSizeEstimateInBytes() [2/2]

size_t JSC::ArrayBuffer::gcSizeEstimateInBytes ( ) const
inline

◆ isNeutered() [1/2]

bool JSC::ArrayBuffer::isNeutered ( )
inline

◆ isNeutered() [2/2]

bool JSC::ArrayBuffer::isNeutered ( )
inline

◆ isShared() [1/2]

bool JSC::ArrayBuffer::isShared ( ) const
inline

◆ isShared() [2/2]

bool JSC::ArrayBuffer::isShared ( ) const
inline

◆ makeShared() [1/2]

void JSC::ArrayBuffer::makeShared ( )

◆ makeShared() [2/2]

void JSC::ArrayBuffer::makeShared ( )

◆ offsetOfData() [1/2]

static ptrdiff_t JSC::ArrayBuffer::offsetOfData ( )
inlinestatic

◆ offsetOfData() [2/2]

static ptrdiff_t JSC::ArrayBuffer::offsetOfData ( )
inlinestatic

◆ pin() [1/2]

void JSC::ArrayBuffer::pin ( )
inline

◆ pin() [2/2]

void JSC::ArrayBuffer::pin ( )
inline

◆ pinAndLock() [1/2]

void JSC::ArrayBuffer::pinAndLock ( )
inline

◆ pinAndLock() [2/2]

void JSC::ArrayBuffer::pinAndLock ( )
inline

◆ setSharingMode() [1/2]

void JSC::ArrayBuffer::setSharingMode ( ArrayBufferSharingMode  newSharingMode)

◆ setSharingMode() [2/2]

void JSC::ArrayBuffer::setSharingMode ( ArrayBufferSharingMode  )

◆ shareWith() [1/2]

JS_EXPORT_PRIVATE bool JSC::ArrayBuffer::shareWith ( ArrayBufferContents )

◆ shareWith() [2/2]

bool JSC::ArrayBuffer::shareWith ( ArrayBufferContents result)

◆ sharingMode() [1/2]

ArrayBufferSharingMode JSC::ArrayBuffer::sharingMode ( ) const
inline

◆ sharingMode() [2/2]

ArrayBufferSharingMode JSC::ArrayBuffer::sharingMode ( ) const
inline

◆ slice() [1/4]

JS_EXPORT_PRIVATE RefPtr<ArrayBuffer> JSC::ArrayBuffer::slice ( int  begin,
int  end 
) const

◆ slice() [2/4]

RefPtr< ArrayBuffer > JSC::ArrayBuffer::slice ( int  begin,
int  end 
) const

◆ slice() [3/4]

JS_EXPORT_PRIVATE RefPtr<ArrayBuffer> JSC::ArrayBuffer::slice ( int  begin) const

◆ slice() [4/4]

RefPtr< ArrayBuffer > JSC::ArrayBuffer::slice ( int  begin) const

◆ transferTo() [1/2]

JS_EXPORT_PRIVATE bool JSC::ArrayBuffer::transferTo ( VM ,
ArrayBufferContents  
)

◆ transferTo() [2/2]

bool JSC::ArrayBuffer::transferTo ( VM vm,
ArrayBufferContents result 
)

◆ tryCreate() [1/6]

RefPtr< ArrayBuffer > JSC::ArrayBuffer::tryCreate ( unsigned  numElements,
unsigned  elementByteSize 
)
static

◆ tryCreate() [2/6]

static JS_EXPORT_PRIVATE RefPtr<ArrayBuffer> JSC::ArrayBuffer::tryCreate ( unsigned  numElements,
unsigned  elementByteSize 
)
static

◆ tryCreate() [3/6]

static JS_EXPORT_PRIVATE RefPtr<ArrayBuffer> JSC::ArrayBuffer::tryCreate ( ArrayBuffer )
static

◆ tryCreate() [4/6]

RefPtr< ArrayBuffer > JSC::ArrayBuffer::tryCreate ( ArrayBuffer other)
static

◆ tryCreate() [5/6]

RefPtr< ArrayBuffer > JSC::ArrayBuffer::tryCreate ( const void source,
unsigned  byteLength 
)
static

◆ tryCreate() [6/6]

static JS_EXPORT_PRIVATE RefPtr<ArrayBuffer> JSC::ArrayBuffer::tryCreate ( const void source,
unsigned  byteLength 
)
static

◆ tryCreateUninitialized() [1/2]

RefPtr< ArrayBuffer > JSC::ArrayBuffer::tryCreateUninitialized ( unsigned  numElements,
unsigned  elementByteSize 
)
static

◆ tryCreateUninitialized() [2/2]

static JS_EXPORT_PRIVATE RefPtr<ArrayBuffer> JSC::ArrayBuffer::tryCreateUninitialized ( unsigned  numElements,
unsigned  elementByteSize 
)
static

◆ unpin() [1/2]

void JSC::ArrayBuffer::unpin ( )
inline

◆ unpin() [2/2]

void JSC::ArrayBuffer::unpin ( )
inline

Member Data Documentation

◆ m_wrapper

Weak< JSArrayBuffer > JSC::ArrayBuffer::m_wrapper

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