public abstract class NativeArrayBufferView extends IdScriptableObject
ScriptableObject.KeyComparator
Modifier and Type | Field and Description |
---|---|
protected NativeArrayBuffer |
arrayBuffer
Many view objects can share the same backing array
|
protected int |
byteLength
The length, in bytes, of the portion of the backing array that we use
|
protected static int |
MAX_INSTANCE_ID |
protected int |
offset
The offset, in bytes, from the start of the backing array
|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
NOT_FOUND
Modifier | Constructor and Description |
---|---|
|
NativeArrayBufferView() |
protected |
NativeArrayBufferView(NativeArrayBuffer ab,
int offset,
int byteLength) |
Modifier and Type | Method and Description |
---|---|
protected int |
findInstanceIdInfo(java.lang.String s)
Map name to id of instance property.
|
NativeArrayBuffer |
getBuffer()
Return the buffer that backs this view.
|
int |
getByteLength()
Return the length, in bytes, of the part of the buffer that this view represents.
|
int |
getByteOffset()
Return the offset in bytes from the start of the buffer that this view represents.
|
protected java.lang.String |
getInstanceIdName(int id)
Map id back to property name it defines.
|
protected java.lang.Object |
getInstanceIdValue(int id)
Get id value.
|
protected int |
getMaxInstanceId()
Get maximum id findInstanceIdInfo can generate.
|
protected static boolean |
isArg(java.lang.Object[] args,
int i) |
protected static boolean |
useLittleEndian() |
activatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, execIdCall, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, findPrototypeId, get, get, getAttributes, getAttributes, getOwnPropertyDescriptor, has, has, hasPrototypeMap, incompatibleCallError, initPrototypeConstructor, initPrototypeId, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, put, setAttributes, setInstanceIdAttributes, setInstanceIdValue
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
protected final NativeArrayBuffer arrayBuffer
protected final int offset
protected final int byteLength
protected static final int MAX_INSTANCE_ID
public NativeArrayBufferView()
protected NativeArrayBufferView(NativeArrayBuffer ab, int offset, int byteLength)
public NativeArrayBuffer getBuffer()
public int getByteOffset()
public int getByteLength()
protected static boolean useLittleEndian()
protected static boolean isArg(java.lang.Object[] args, int i)
protected int getMaxInstanceId()
IdScriptableObject
getMaxInstanceId
in class IdScriptableObject
protected java.lang.String getInstanceIdName(int id)
IdScriptableObject
getInstanceIdName
in class IdScriptableObject
protected java.lang.Object getInstanceIdValue(int id)
IdScriptableObject
getInstanceIdValue
in class IdScriptableObject
protected int findInstanceIdInfo(java.lang.String s)
IdScriptableObject
IdScriptableObject.instanceIdInfo(int, int)
.findInstanceIdInfo
in class IdScriptableObject