Home
last modified time | relevance | path

Searched refs:byteOffset (Results 1 – 15 of 15) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/ts_types/
Dlib_ark_builtins.d.ts738 byteOffset: number;
748 constructor(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
826 byteOffset: number;
836 constructor(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
914 byteOffset: number;
924 constructor(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
1002 byteOffset: number;
1012 constructor(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
1090 byteOffset: number;
1100 constructor(buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
[all …]
/arkcompiler/ets_runtime/ecmascript/base/tests/
Datomic_helper_test.cpp76 uint32_t byteOffset = 7; in HWTEST_F_L0() local
85 array->SetByteOffset(byteOffset); in HWTEST_F_L0()
94 EXPECT_EQ(index0, 0 * sizeof(int8_t) + byteOffset); in HWTEST_F_L0()
95 EXPECT_EQ(index1, 1 * sizeof(int8_t) + byteOffset); in HWTEST_F_L0()
96 EXPECT_EQ(index2, 2 * sizeof(int8_t) + byteOffset); in HWTEST_F_L0()
106 uint32_t byteOffset = 7; in HWTEST_F_L0() local
115 array->SetByteOffset(byteOffset); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/include/
Djsnapi.h812 …ic Local<DataViewRef> New(const EcmaVM *vm, Local<ArrayBufferRef> arrayBuffer, uint32_t byteOffset,
829 …8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset, int32_t length);
834 …8ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset, int32_t length);
839 …Local<Uint8ClampedArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset,
845 …6ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset, int32_t length);
850 …tatic Local<Uint16ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset,
856 …2ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset, int32_t length);
861 …tatic Local<Uint32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset,
867 …atic Local<Float32ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset,
873 …atic Local<Float64ArrayRef> New(const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset,
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_arraybuffer.h80 static void *GetDataPointFromBuffer(JSTaggedValue arrBuf, uint32_t byteOffset = 0);
Dbuiltins_arraybuffer.cpp723 void *BuiltinsArrayBuffer::GetDataPointFromBuffer(JSTaggedValue arrBuf, uint32_t byteOffset) in GetDataPointFromBuffer() argument
726 …terpret_cast<void *>(ToUintPtr(ByteArray::Cast(arrBuf.GetTaggedObject())->GetData()) + byteOffset); in GetDataPointFromBuffer()
736 ->GetExternalPointer()) + byteOffset); in GetDataPointFromBuffer()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_serializer_test.cpp622 uint32_t byteOffset = resJSInt8Array->GetByteOffset(); in TypedArrayTest1() local
631 EXPECT_EQ(byteOffset, 0) << "Not Same ByteOffset"; in TypedArrayTest1()
661 uint32_t byteOffset = resJSInt8Array->GetByteOffset(); in TypedArrayTest2() local
670 EXPECT_EQ(byteOffset, 0) << "Not Same ByteOffset"; in TypedArrayTest2()
902 uint32_t byteOffset = resJSInt8Array->GetByteOffset(); in TransferJSArrayBufferTest4() local
907 EXPECT_EQ(byteOffset, 0) << "Not Same ByteOffset"; in TransferJSArrayBufferTest4()
1686 int byteOffset = 0; in HWTEST_F_L0() local
1687 int arrayLength = (byteLength - byteOffset) / (sizeof(int8_t)); in HWTEST_F_L0()
1689 int8Array->SetByteOffset(byteOffset); in HWTEST_F_L0()
1719 int byteOffset = 0; in HWTEST_F_L0() local
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp753 JSTaggedValue byteOffset(typedArray->GetByteOffset()); in WriteJSTypedArray() local
754 if (!WriteRawData(&byteOffset, sizeof(JSTaggedValue))) { in WriteJSTypedArray()
1711 JSTaggedValue byteOffset; in ReadJSTypedArray() local
1712 if (!ReadJSTaggedValue(&byteOffset) || !byteOffset.IsNumber()) { in ReadJSTypedArray()
1715 typedArray->SetByteOffset(byteOffset.GetNumber()); in ReadJSTypedArray()
1718 if (!ReadJSTaggedValue(&arrayLength) || !byteOffset.IsNumber()) { in ReadJSTypedArray()
/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper.cpp315 JSHandle<JSTaggedValue> byteOffset = BuiltinsBase::GetCallArg(argv, 1); in CreateFromArrayBuffer() local
316 JSTaggedNumber index = JSTaggedValue::ToIndex(thread, byteOffset); in CreateFromArrayBuffer()
/arkcompiler/toolchain/tooling/agent/
Druntime_impl.cpp710 int32_t byteOffset = static_cast<int32_t>(dataViewRef->ByteOffset()); in GetDataViewValue() local
715 jsValueRef = NumberRef::New(vm_, byteOffset); in GetDataViewValue()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_dataview_test.cpp163 HWTEST_F_L0(BuiltinsDataViewTest, byteOffset) in HWTEST_F_L0() argument
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp2215 const EcmaVM *vm, Local<ArrayBufferRef> arrayBuffer, uint32_t byteOffset, uint32_t byteLength) in New() argument
2222 JSHandle<JSDataView> dataView = factory->NewJSDataView(buffer, byteOffset, byteLength); in New()
2290 …const EcmaVM *vm, Local<ArrayBufferRef> buffer, int32_t byteOffset, int32_t length) \
2303 …info->SetCallArg(arrayBuffer.GetTaggedValue(), JSTaggedValue(byteOffset), JSTaggedValue(length)); \
/arkcompiler/ets_frontend/test262/
Des2015_tests.txt3262 built-ins/DataView/prototype/byteOffset/detached-buffer.js
3263 built-ins/DataView/prototype/byteOffset/invoked-as-accessor.js
3264 built-ins/DataView/prototype/byteOffset/invoked-as-func.js
3265 built-ins/DataView/prototype/byteOffset/length.js
3266 built-ins/DataView/prototype/byteOffset/name.js
3267 built-ins/DataView/prototype/byteOffset/prop-desc.js
3268 built-ins/DataView/prototype/byteOffset/return-byteoffset.js
3269 built-ins/DataView/prototype/byteOffset/return-byteoffset-sab.js
3270 built-ins/DataView/prototype/byteOffset/this-has-no-dataview-internal.js
3271 built-ins/DataView/prototype/byteOffset/this-has-no-dataview-internal-sab.js
[all …]
DCI_tests.txt2120 built-ins/TypedArrayConstructors/prototype/byteOffset/inherited.js
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Dcocos_worker_test.js24069 const e = new DataView(t.buffer, t.byteOffset, t.byteLength);
24077 const r = new Uint8Array(e.buffer, s + e.byteOffset, n);
24083 return e.from(t.buffer, t.byteOffset, t.byteLength).toString();
24100 l.push(new Uint8Array(e.buffer, s + e.byteOffset, t));
24237 … return new globalThis[s](this._mainBinChunk.buffer, this._mainBinChunk.byteOffset + e, i);
25587 const s = new DataView(i.buffer, i.byteOffset, i.byteLength);
25975 const s = new DataView(i.buffer, i.byteOffset, i.byteLength);
41222 o || (o = new DataView(t.buffer.slice(t.byteOffset, t.byteOffset + t.byteLength)));
41261 const s = new DataView(t.data.buffer, t.data.byteOffset, t.data.byteLength);
42729 t[t.byteOffset = 0] = "byteOffset";
[all …]
/arkcompiler/ets_frontend/es2panda/test/
Dtest262skiplist.txt5837 built-ins/DataView/prototype/byteOffset/detached-buffer.js
5838 built-ins/DataView/prototype/byteOffset/return-byteoffset-sab.js
5839 built-ins/DataView/prototype/byteOffset/this-has-no-dataview-internal-sab.js
6777 built-ins/TypedArray/prototype/byteOffset/BigInt/detached-buffer.js
6778 built-ins/TypedArray/prototype/byteOffset/BigInt/return-byteoffset.js
6779 built-ins/TypedArray/prototype/byteOffset/detached-buffer.js
7235 built-ins/TypedArrayConstructors/prototype/byteOffset/bigint-inherited.js