Home
last modified time | relevance | path

Searched refs:jsTypedArray (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper.cpp173 JSTypedArray *jsTypedArray = JSTypedArray::Cast(*obj); in AllocateTypedArrayBuffer() local
176 jsTypedArray->SetContentType(ContentType::BigInt); in AllocateTypedArrayBuffer()
178 jsTypedArray->SetContentType(ContentType::Number); in AllocateTypedArrayBuffer()
184 jsTypedArray->SetViewedArrayBufferOrByteArray(thread, data); in AllocateTypedArrayBuffer()
185 jsTypedArray->SetByteLength(byteLength); in AllocateTypedArrayBuffer()
186 jsTypedArray->SetByteOffset(0); in AllocateTypedArrayBuffer()
187 jsTypedArray->SetArrayLength(arrayLength); in AllocateTypedArrayBuffer()
230 JSTypedArray *jsTypedArray = JSTypedArray::Cast(*obj); in AllocateTypedArrayBuffer() local
233 jsTypedArray->SetContentType(ContentType::BigInt); in AllocateTypedArrayBuffer()
235 jsTypedArray->SetContentType(ContentType::Number); in AllocateTypedArrayBuffer()
[all …]
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dtyped_array_helper_test.cpp141 JSTypedArray *jsTypedArray = JSTypedArray::Cast(*arrayObj); in HWTEST_F_L0() local
142 EXPECT_EQ(jsTypedArray->GetContentType(), ContentType::Number); in HWTEST_F_L0()
143 …EXPECT_EQ(jsTypedArray->GetTypedArrayName().GetRawData(), constructorName.GetTaggedValue().GetRawD… in HWTEST_F_L0()
144 EXPECT_EQ(jsTypedArray->GetByteLength(), 0U); in HWTEST_F_L0()
145 EXPECT_EQ(jsTypedArray->GetByteOffset(), 0U); in HWTEST_F_L0()
146 EXPECT_EQ(jsTypedArray->GetArrayLength(), 0U); in HWTEST_F_L0()
162 JSTypedArray *jsTypedArray = JSTypedArray::Cast(*arrayObj); in HWTEST_F_L0() local
163 EXPECT_EQ(jsTypedArray->GetContentType(), ContentType::Number); in HWTEST_F_L0()
164 …EXPECT_EQ(jsTypedArray->GetTypedArrayName().GetRawData(), constructorName.GetTaggedValue().GetRawD… in HWTEST_F_L0()
165 EXPECT_EQ(jsTypedArray->GetByteLength(), 256U); in HWTEST_F_L0()
[all …]