public final class JSArrayBuffer extends JSAbstractBuffer implements JSConstructorFactory.WithFunctionsAndSpecies, PrototypeSupplier
usesOrdinaryGetOwnPropertyJSConstructorFactory.Default, JSConstructorFactory.WithFunctions, JSConstructorFactory.WithFunctionsAndSpecies| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME |
static JSArrayBuffer |
DIRECT_INSTANCE |
static JSArrayBuffer |
HEAP_INSTANCE |
static JSArrayBuffer |
INTEROP_INSTANCE |
static String |
PROTOTYPE_NAME |
BYTE_LENGTHEMPTY_STRING_ARRAY| Modifier and Type | Method and Description |
|---|---|
static com.oracle.truffle.api.object.DynamicObject |
createArrayBuffer(JSContext context,
byte[] byteArray) |
static com.oracle.truffle.api.object.DynamicObject |
createArrayBuffer(JSContext context,
int length) |
static JSConstructor |
createConstructor(JSRealm realm) |
static com.oracle.truffle.api.object.DynamicObject |
createDirectArrayBuffer(JSContext context,
ByteBuffer buffer) |
static com.oracle.truffle.api.object.DynamicObject |
createDirectArrayBuffer(JSContext context,
int length) |
static com.oracle.truffle.api.object.DynamicObject |
createInteropArrayBuffer(JSContext context,
Object buffer) |
com.oracle.truffle.api.object.DynamicObject |
createPrototype(JSRealm realm,
com.oracle.truffle.api.object.DynamicObject ctor) |
static void |
detachArrayBuffer(com.oracle.truffle.api.object.DynamicObject arrayBuffer)
ES2015, 24.1.1.3 DetachArrayBuffer().
|
static byte[] |
getByteArray(Object thisObj) |
String |
getClassName() |
String |
getClassName(com.oracle.truffle.api.object.DynamicObject 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) |
com.oracle.truffle.api.object.DynamicObject |
getIntrinsicDefaultProto(JSRealm realm) |
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,
com.oracle.truffle.api.object.DynamicObject 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, testIntegrityLevelDefaultdispatch, equals, hashCode, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfillConstructorcreateConstructorAndPrototypecreateConstructorObjectpublic static final String CLASS_NAME
public static final String PROTOTYPE_NAME
public static final JSArrayBuffer HEAP_INSTANCE
public static final JSArrayBuffer DIRECT_INSTANCE
public static final JSArrayBuffer INTEROP_INSTANCE
public static com.oracle.truffle.api.object.DynamicObject createArrayBuffer(JSContext context, int length)
public static com.oracle.truffle.api.object.DynamicObject createArrayBuffer(JSContext context, 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 com.oracle.truffle.api.object.DynamicObject createDirectArrayBuffer(JSContext context, int length)
public static com.oracle.truffle.api.object.DynamicObject createDirectArrayBuffer(JSContext context, ByteBuffer buffer)
public static com.oracle.truffle.api.object.DynamicObject createInteropArrayBuffer(JSContext context, Object buffer)
public com.oracle.truffle.api.object.DynamicObject createPrototype(JSRealm realm, com.oracle.truffle.api.object.DynamicObject ctor)
createPrototype in interface JSConstructorFactorypublic com.oracle.truffle.api.object.Shape makeInitialShape(JSContext context, com.oracle.truffle.api.object.DynamicObject prototype)
makeInitialShape in class JSClasspublic static JSConstructor createConstructor(JSRealm realm)
public String getClassName()
getClassName in interface JSConstructorFactorypublic String getClassName(com.oracle.truffle.api.object.DynamicObject 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(com.oracle.truffle.api.object.DynamicObject arrayBuffer)
public com.oracle.truffle.api.object.DynamicObject getIntrinsicDefaultProto(JSRealm realm)
getIntrinsicDefaultProto in interface PrototypeSupplier