Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes

js::ArrayBuffer Struct Reference

#include <jstypedarray.h>

Collaboration diagram for js::ArrayBuffer:

List of all members.

Public Member Functions

 ArrayBuffer ()
 ~ArrayBuffer ()
bool allocateStorage (JSContext *cx, uint32 bytes)
void freeStorage (JSContext *cx)
void * offsetData (uint32 offs)

Static Public Member Functions

static JSBool prop_getByteLength (JSContext *cx, JSObject *obj, jsval id, jsval *vp)
static void class_finalize (JSContext *cx, JSObject *obj)
static JSBool class_constructor (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
static ArrayBufferfromJSObject (JSObject *obj)

Public Attributes

void * data
uint32 byteLength

Static Public Attributes

static JSClass jsclass
static JSPropertySpec jsprops []

Constructor & Destructor Documentation

js::ArrayBuffer::ArrayBuffer (  )  [inline]
js::ArrayBuffer::~ArrayBuffer (  ) 

Member Function Documentation

bool js::ArrayBuffer::allocateStorage ( JSContext cx,
uint32  bytes 
)
static JSBool js::ArrayBuffer::class_constructor ( JSContext cx,
JSObject obj,
uintN  argc,
jsval argv,
jsval rval 
) [static]
static void js::ArrayBuffer::class_finalize ( JSContext cx,
JSObject obj 
) [static]
void js::ArrayBuffer::freeStorage ( JSContext cx  ) 
static ArrayBuffer* js::ArrayBuffer::fromJSObject ( JSObject obj  )  [static]
void* js::ArrayBuffer::offsetData ( uint32  offs  )  [inline]
static JSBool js::ArrayBuffer::prop_getByteLength ( JSContext cx,
JSObject obj,
jsval  id,
jsval vp 
) [static]

Member Data Documentation


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