public final class JSArrayBuffer extends JSAbstractBuffer implements JSConstructorFactory.WithFunctionsAndSpecies, PrototypeSupplier
usesOrdinaryGetOwnPropertyJSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpecies| Modifier and Type | Field and Description |
|---|---|
static com.oracle.truffle.api.strings.TruffleString |
CLASS_NAME |
static JSArrayBuffer |
DIRECT_INSTANCE |
static JSArrayBuffer |
HEAP_INSTANCE |
static JSArrayBuffer |
INTEROP_INSTANCE |
static com.oracle.truffle.api.strings.TruffleString |
PROTOTYPE_NAME |
GET_SYMBOL_SPECIES_NAME| Modifier and Type | Method and Description |
|---|---|
static JSArrayBufferObject |
createArrayBuffer(JSContext context,
JSRealm realm,
byte[] byteArray) |
static JSArrayBufferObject |
createArrayBuffer(JSContext context,
JSRealm realm,
int length) |
static JSConstructor |
createConstructor(JSRealm realm) |
static JSArrayBufferObject |
createDirectArrayBuffer(JSContext context,
JSRealm realm,
ByteBuffer buffer) |
static JSArrayBufferObject |
createDirectArrayBuffer(JSContext context,
JSRealm realm,
int length) |
static JSArrayBufferObject |
createInteropArrayBuffer(JSContext context,
JSRealm realm,
Object buffer) |
JSDynamicObject |
createPrototype(JSRealm realm,
JSFunctionObject ctor) |
static void |
detachArrayBuffer(JSDynamicObject arrayBuffer)
ES2015, 24.1.1.3 DetachArrayBuffer().
|
static byte[] |
getByteArray(Object thisObj) |
com.oracle.truffle.api.strings.TruffleString |
getClassName() |
com.oracle.truffle.api.strings.TruffleString |
getClassName(JSDynamicObject object)
The [[Class]] internal property.
|
static ByteBuffer |
getDirectByteBuffer(Object thisObj) |
static int |
getDirectByteLength(Object thisObj) |
static int |
getHeapByteLength(Object thisObj) |
static Object |
getInteropBuffer(Object thisObj) |
JSDynamicObject |
getIntrinsicDefaultProto(JSRealm realm)
Allows invokevirtual of this method instead of invokeinterface.
|
static boolean |
isDetachedBuffer(Object arrayBuffer)
ES2015, 24.1.1.2 IsDetachedBuffer.
|
static boolean |
isJSDirectArrayBuffer(Object obj) |
static boolean |
isJSDirectOrSharedArrayBuffer(Object obj) |
static boolean |
isJSHeapArrayBuffer(Object obj) |
static boolean |
isJSInteropArrayBuffer(Object obj) |
com.oracle.truffle.api.object.Shape |
makeInitialShape(JSContext context,
JSDynamicObject prototype) |
isJSAbstractBuffercheckProtoCycle, createSymbolSpeciesGetterFunction, defineOwnProperty, delete, delete, deletePropertyDefault, getBuiltinToStringTag, getHelper, getHelper, getMethodHelper, getOwnHelper, getOwnHelper, getOwnProperty, getOwnPropertyKeys, getPrototypeOf, hasOnlyShapeProperties, hasOwnProperty, hasOwnProperty, hasProperty, hasProperty, invokeAccessorPropertySetter, isExtensible, ordinaryGetOwnProperty, ordinaryGetOwnPropertyIntl, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeys, ordinaryOwnPropertyKeysSlow, ordinarySet, ordinarySetIndex, ordinarySetWithReceiver, performOrdinarySetWithOwnDescriptor, preventExtensions, preventExtensionsImpl, putConstructorSpeciesGetter, set, set, setIntegrityLevel, setIntegrityLevelFast, setPropertySlow, setPrototypeOf, testIntegrityLevel, testIntegrityLevelFast, toDisplayStringImpl, toString, usesOrdinaryGetOwnProperty, usesOrdinaryIsExtensibledefaultToString, filterOwnPropertyKeys, formatToString, get, get, getToStringTag, isInstance, isInstance, isInstance, isInstance, ownPropertyKeys, testIntegrityLevelDefaultclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitfillConstructorcreateConstructorAndPrototypecreateConstructorObjectpublic static final com.oracle.truffle.api.strings.TruffleString CLASS_NAME
public static final com.oracle.truffle.api.strings.TruffleString PROTOTYPE_NAME
public static final JSArrayBuffer HEAP_INSTANCE
public static final JSArrayBuffer DIRECT_INSTANCE
public static final JSArrayBuffer INTEROP_INSTANCE
public static JSArrayBufferObject createArrayBuffer(JSContext context, JSRealm realm, int length)
public static JSArrayBufferObject createArrayBuffer(JSContext context, JSRealm realm, byte[] byteArray)
public static byte[] getByteArray(Object thisObj)
public static int getHeapByteLength(Object thisObj)
public static int getDirectByteLength(Object thisObj)
public static ByteBuffer getDirectByteBuffer(Object thisObj)
public static JSArrayBufferObject createDirectArrayBuffer(JSContext context, JSRealm realm, int length)
public static JSArrayBufferObject createDirectArrayBuffer(JSContext context, JSRealm realm, ByteBuffer buffer)
public static JSArrayBufferObject createInteropArrayBuffer(JSContext context, JSRealm realm, Object buffer)
public JSDynamicObject createPrototype(JSRealm realm, JSFunctionObject ctor)
createPrototype in interface JSConstructorFactorypublic com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context, JSDynamicObject prototype)
makeInitialShape in class JSClasspublic static JSConstructor createConstructor(JSRealm realm)
public com.oracle.truffle.api.strings.TruffleString getClassName()
getClassName in interface JSConstructorFactorypublic com.oracle.truffle.api.strings.TruffleString getClassName(JSDynamicObject object)
JSClassgetClassName in class JSClassobject - object to be usedpublic static boolean isJSHeapArrayBuffer(Object obj)
public static boolean isJSDirectArrayBuffer(Object obj)
public static boolean isJSInteropArrayBuffer(Object obj)
public static boolean isJSDirectOrSharedArrayBuffer(Object obj)
public static boolean isDetachedBuffer(Object arrayBuffer)
public static void detachArrayBuffer(JSDynamicObject arrayBuffer)
public JSDynamicObject getIntrinsicDefaultProto(JSRealm realm)
JSClassPrototypeSupplier.getIntrinsicDefaultProto in interface PrototypeSuppliergetIntrinsicDefaultProto in class JSClassPrototypeSupplier.getIntrinsicDefaultProto(com.oracle.truffle.js.runtime.JSRealm)