Home
last modified time | relevance | path

Searched refs:byteArray (Results 1 – 5 of 5) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Dbyte_array_test.cpp62 JSHandle<ByteArray> byteArray = factory->NewByteArray(5, 8); in HWTEST_F_L0() local
65 …uintptr_t dataPointer = reinterpret_cast<uintptr_t>(byteArray.GetTaggedValue().GetTaggedObject()) … in HWTEST_F_L0()
66 EXPECT_EQ(byteArray->GetData(2), reinterpret_cast<void *>(dataPointer)); in HWTEST_F_L0()
80 JSHandle<ByteArray> byteArray = factory->NewByteArray(3, sizeof(value)); in HWTEST_F_L0() local
81 byteArray->Set(thread, 1, DataViewType::UINT32, val, 2); in HWTEST_F_L0()
82 EXPECT_EQ(byteArray->Get(thread, 1, DataViewType::UINT32, 2), JSTaggedValue(value)); in HWTEST_F_L0()
Djs_serializer_test.cpp664 … JSHandle<JSTaggedValue> byteArray(thread, resJSInt8Array->GetViewedArrayBufferOrByteArray()); in TypedArrayTest2() local
675 EXPECT_TRUE(byteArray->IsByteArray()); in TypedArrayTest2()
676 JSHandle<ByteArray> resByteArray(byteArray); in TypedArrayTest2()
1713 JSHandle<ByteArray> byteArray = factory->NewByteArray(byteArrayLength, sizeof(value)); in HWTEST_F_L0() local
1715 byteArray->Set(thread, i, DataViewType::UINT8, val); in HWTEST_F_L0()
1717 int8Array->SetViewedArrayBufferOrByteArray(thread, byteArray); in HWTEST_F_L0()
Ddump_test.cpp812 JSHandle<ByteArray> byteArray = factory->NewByteArray(4, 8); in HWTEST_F_L0() local
813 DUMP_FOR_HANDLE(byteArray) in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_typed_array.cpp714 ByteArray *byteArray = ByteArray::Cast(arrBuf.GetTaggedObject()); in GetOffHeapBuffer() local
715 int32_t length = static_cast<int32_t>(byteArray->GetArrayLength() * byteArray->GetByteLength()); in GetOffHeapBuffer()
Djs_serializer.cpp394 JSHandle<ByteArray> byteArray = JSHandle<ByteArray>::Cast(value); in WriteByteArray() local
398 uint32_t arrayLength = byteArray->GetArrayLength(); in WriteByteArray()
408 val.Update(byteArray->Get(thread_, i, viewType)); in WriteByteArray()
1257 JSHandle<ByteArray> byteArray = factory_->NewByteArray(arrayLength, arrayType); in ReadByteArray() local
1260 byteArray->Set(thread_, i, viewType, val.GetTaggedType()); in ReadByteArray()
1262 return JSHandle<JSTaggedValue>(byteArray); in ReadByteArray()