Home
last modified time | relevance | path

Searched refs:GetByteLength (Results 1 - 25 of 38) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/
H A Dbyte_array.cpp25 builtins::BuiltinsArrayBuffer::SetValueInBuffer(thread, idx * GetByteLength(), block, in Set()
33 return builtins::BuiltinsArrayBuffer::GetValueFromBuffer(thread, idx * GetByteLength(), block, type, true); in Get()
H A Dbyte_array.h46 size_t byteSize = ComputeDataSize(GetArrayLength(), GetByteLength()); in GetPointerLength()
52 return reinterpret_cast<void *>(ToUintPtr(this) + DATA_OFFSET + index * GetByteLength()); in GetData()
H A Druntime_call_id.h343 V(ArrayBuffer, GetByteLength) \
355 V(SharedArrayBuffer, GetByteLength) \
359 V(SendableArrayBuffer, GetByteLength) \
392 V(DataView, GetByteLength) \
874 V(TypedArray, GetByteLength) \
921 V(SharedTypedArray, GetByteLength) \
H A Djs_hclass-inl.h254 size = ByteArray::ComputeSize(reinterpret_cast<ByteArray *>(header)->GetByteLength(), in SizeFromJSHClass()
H A Djs_typed_array.cpp758 int32_t length = static_cast<int32_t>(byteArray->GetArrayLength() * byteArray->GetByteLength()); in GetOffHeapBuffer()
790 int32_t length = static_cast<int32_t>(byteArray->GetArrayLength() * byteArray->GetByteLength()); in GetSharedOffHeapBuffer()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_arraybuffer_test.cpp61 JSTaggedValue result = BuiltinsArrayBuffer::GetByteLength(ecmaRuntimeCallInfo); in HWTEST_F_L0()
86 JSTaggedValue result2 = BuiltinsArrayBuffer::GetByteLength(ecmaRuntimeCallInfo1); in HWTEST_F_L0()
H A Dbuiltins_sendable_arraybuffer_test.cpp53 JSTaggedValue result2 = BuiltinsSendableArrayBuffer::GetByteLength(ecmaRuntimeCallInfo1); in SendableArrayBufferSliceTest()
96 JSTaggedValue result = BuiltinsSendableArrayBuffer::GetByteLength(ecmaRuntimeCallInfo); in HWTEST_F_L0()
339 JSTaggedValue result1 = BuiltinsSendableArrayBuffer::GetByteLength(ecmaRuntimeCallInfo1); in HWTEST_F_L0()
362 JSTaggedValue result1 = BuiltinsSendableArrayBuffer::GetByteLength(ecmaRuntimeCallInfo1); in HWTEST_F_L0()
H A Dbuiltins_sharedarraybuffer_test.cpp72 JSTaggedValue result = BuiltinsSharedArrayBuffer::GetByteLength(ecmaRuntimeCallInfo); in HWTEST_F_L0()
96 JSTaggedValue result2 = BuiltinsSharedArrayBuffer::GetByteLength(ecmaRuntimeCallInfo1); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_sharedarraybuffer.h33 static JSTaggedValue GetByteLength(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_dataview.cpp126 JSTaggedValue BuiltinsDataView::GetByteLength(EcmaRuntimeCallInfo *argv) in GetByteLength() function in panda::ecmascript::builtins::BuiltinsDataView
130 BUILTINS_API_TRACE(thread, DataView, GetByteLength); in GetByteLength()
150 uint32_t size = dataView->GetByteLength(); in GetByteLength()
391 uint32_t size = dataView->GetByteLength(); in GetViewValue()
456 uint32_t size = dataView->GetByteLength(); in SetViewValue()
H A Dbuiltins_sendable_arraybuffer.cpp81 JSTaggedValue BuiltinsSendableArrayBuffer::GetByteLength(EcmaRuntimeCallInfo *argv) in GetByteLength() function in panda::ecmascript::builtins::BuiltinsSendableArrayBuffer
85 BUILTINS_API_TRACE(thread, SendableArrayBuffer, GetByteLength); in GetByteLength()
297 int32_t byteLen = static_cast<int32_t>(byteArrayBuf->GetByteLength()); in CloneArrayBuffer()
H A Dbuiltins_shared_typedarray.h65 V("byteLength", GetByteLength, TypedArrayGetByteLength) /* get %TypedArray%.prototype.byteLength */ \
146 static JSTaggedValue GetByteLength(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_sharedarraybuffer.cpp126 JSTaggedValue BuiltinsSharedArrayBuffer::GetByteLength(EcmaRuntimeCallInfo *argv) in GetByteLength() function in panda::ecmascript::builtins::BuiltinsSharedArrayBuffer
129 BUILTINS_API_TRACE(argv->GetThread(), SharedArrayBuffer, GetByteLength); in GetByteLength()
H A Dbuiltins_typedarray.h64 V("byteLength", GetByteLength, TypedArrayGetByteLength) /* get %TypedArray%.prototype.byteLength */ \
167 static JSTaggedValue GetByteLength(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_dataview.h65 static JSTaggedValue GetByteLength(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_sendable_arraybuffer.h46 static JSTaggedValue GetByteLength(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_arraybuffer.h62 static JSTaggedValue GetByteLength(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_arraybuffer.cpp78 JSTaggedValue BuiltinsArrayBuffer::GetByteLength(EcmaRuntimeCallInfo *argv) in GetByteLength() function in panda::ecmascript::builtins::BuiltinsArrayBuffer
82 BUILTINS_API_TRACE(thread, ArrayBuffer, GetByteLength); in GetByteLength()
304 int32_t byteLen = static_cast<int32_t>(byteArrayBuf->GetByteLength()); in CloneArrayBuffer()
H A Dbuiltins_shared_typedarray.cpp369 JSTaggedValue BuiltinsSharedTypedArray::GetByteLength(EcmaRuntimeCallInfo *argv) in GetByteLength() function in panda::ecmascript::builtins::BuiltinsSharedTypedArray
372 BUILTINS_API_TRACE(argv->GetThread(), SharedTypedArray, GetByteLength); in GetByteLength()
395 return JSTaggedValue(typeArrayObj->GetByteLength()); in GetByteLength()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_arraybuffer.h62 EtsInt GetByteLength() const in GetByteLength() function in ark::ets::EtsArrayBuffer
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_dataview_test.cpp127 * SubFunction: GetByteLength
129 * CaseDescription: Check whether the returned value through "GetByteLength" function is within expectations after
150 EXPECT_EQ(handleDataView->GetByteLength(), lengthDataView1); in HWTEST_F_L0()
154 EXPECT_EQ(handleDataView->GetByteLength(), lengthDataView2); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/base/tests/
H A Dtyped_array_helper_test.cpp144 EXPECT_EQ(jsTypedArray->GetByteLength(), 0U); in HWTEST_F_L0()
165 EXPECT_EQ(jsTypedArray->GetByteLength(), 256U); in HWTEST_F_L0()
455 EXPECT_EQ(jsTypedArray->GetByteLength(), 0U); in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
H A Djs_convert.h484 NAPI_CHECK_FATAL(napi_create_arraybuffer(env, etsVal->GetByteLength(), &data, &buf)); in JSCONVERT_WRAP()
485 std::copy_n(reinterpret_cast<const uint8_t *>(etsVal->GetData()->GetData<const void *>()), etsVal->GetByteLength(), in JSCONVERT_WRAP()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
H A Dbuiltins_dataview_stub_builder.cpp73 GateRef size = GetByteLength(thisValue); in SetTypedValue()
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
H A Dsnapshot_processor.cpp431 reinterpret_cast<uintptr_t>(BuiltinsTypedArray::GetByteLength),
499 reinterpret_cast<uintptr_t>(ArrayBuffer::GetByteLength),
503 reinterpret_cast<uintptr_t>(SharedArrayBuffer::GetByteLength),
525 reinterpret_cast<uintptr_t>(DataView::GetByteLength),

Completed in 21 milliseconds

12