Home
last modified time | relevance | path

Searched refs:typedArray (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.cpp1219 Local<panda::TypedArrayRef> typedArray; in NapiNewTypedArray() local
1258 *result = JsValueFromLocalValue(typedArray); in NapiNewTypedArray()
1296 *result = JsValueFromLocalValue(typedArray); in NapiNewSendableTypedArray()
1303 if (typedArray->IsInt8Array(vm_)) { in GetTypedArrayType()
1305 } else if (typedArray->IsUint8Array(vm_)) { in GetTypedArrayType()
1309 } else if (typedArray->IsInt16Array(vm_)) { in GetTypedArrayType()
1311 } else if (typedArray->IsUint16Array(vm_)) { in GetTypedArrayType()
1313 } else if (typedArray->IsInt32Array(vm_)) { in GetTypedArrayType()
1315 } else if (typedArray->IsUint32Array(vm_)) { in GetTypedArrayType()
1317 } else if (typedArray->IsFloat32Array(vm_)) { in GetTypedArrayType()
[all …]
H A Dark_native_engine.h176 NativeTypedArrayType GetTypedArrayType(panda::Local<panda::TypedArrayRef> typedArray) override;
177 …rrayType GetSendableTypedArrayType(panda::Local<panda::SendableTypedArrayRef> typedArray) override;
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi_common/source/
H A Dnapi_ashmem.cpp432 napi_value typedArray = nullptr; in ReadFromAshmem() local
433 napi_create_typedarray(env, napi_int32_array, size / BYTE_SIZE_32, arrayBuffer, 0, &typedArray); in ReadFromAshmem()
435 napi_is_typedarray(env, typedArray, &isTypedArray); in ReadFromAshmem()
438 return typedArray; in ReadFromAshmem()
442 return typedArray; in ReadFromAshmem()
500 napi_value typedArray = nullptr; in TransferByteToJsData() local
501 napi_create_typedarray(env, napi_int32_array, size / BYTE_SIZE_32, arrayBuffer, 0, &typedArray); in TransferByteToJsData()
503 napi_is_typedarray(env, typedArray, &isTypedArray); in TransferByteToJsData()
510 return typedArray; in TransferByteToJsData()
517 return typedArray; in TransferByteToJsData()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-napi-about-array.md493 napi_value typedArray = nullptr;
498 napi_create_typedarray(env, arrayType, length, arrayBuffer, 0, &typedArray);
499 return typedArray;
530 let typedArray = testNapi.createTypedArray<Int8Array>(testNapi.TypedArrayTypes["INT8_ARRAY"]);
531 if (typedArray instanceof Int8Array) {
H A Duse-jsvm-about-array.md202 JSVM_Value typedArray = nullptr;
207 …JSVM_Status status = OH_JSVM_CreateTypedarray(env, arrayType, length, arrayBuffer, 0, &typedArray);
213 return typedArray;
/ohos5.0/commonlibrary/utils_lite/js/builtin/filekit/src/
H A Dnativeapi_fs.cpp427 …JSIValue typedArray = JSI::CreateTypedArray(TypedArrayType::JSI_UINT8_ARRAY, actualLen, arrayBuffe… in ReadArrayFileInner() local
428 JSI::SetNamedProperty(result, FILE_BUFFER, typedArray); in ReadArrayFileInner()
429 JSI::ReleaseValueList(typedArray, arrayBuffer, ARGS_END); in ReadArrayFileInner()
/ohos5.0/base/security/huks/interfaces/kits/liteapi/src/
H A Dhks_lite_api_common.cpp402 …JSIValue typedArray = JSI::CreateTypedArray(TypedArrayType::JSI_UINT8_ARRAY, result->outData->size, in HksConstructJSIReturnResult() local
405 JSI::SetNamedProperty(res, HKS_RESULT_PROPERTY_OUTDATA, typedArray); in HksConstructJSIReturnResult()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/native_engine/jsi/test/unittest/common/
H A Djsi_interface_tdd_test.cpp691 …JSIValue typedArray = JSI::CreateTypedArray(TypedArrayType::JSI_UINT8_ARRAY, byteLength, buffer, i… in JSIInterfaceTest019() local
698 bool res1 = JSI::ValueIsTypedArray(typedArray); in JSIInterfaceTest019()
711 uint8_t *ptr2 = JSI::GetTypedArrayInfo(typedArray, type, length, arrayBuffer, offset); in JSIInterfaceTest019()
724 JSI::ReleaseValueList(typedArray, undef, arrayBuffer); in JSIInterfaceTest019()
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/native_engine/jsi/
H A Djsi.cpp943 uint8_t *JSI::GetTypedArrayInfo(JSIValue typedArray, in GetTypedArrayInfo() argument
949 if (!ValueIsTypedArray(typedArray)) { in GetTypedArrayInfo()
954 jerry_value_t jVal = AS_JERRY_VALUE(typedArray); in GetTypedArrayInfo()
/ohos5.0/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dnapi_web_download_item.cpp722 napi_value typedArray; in JS_Serialize() local
724 0, &typedArray); in JS_Serialize()
730 return typedArray; in JS_Serialize()
/ohos5.0/foundation/arkui/ace_engine_lite/interfaces/inner_api/builtin/jsi/
H A Djsi.h632 static uint8_t *GetTypedArrayInfo(JSIValue typedArray,
/ohos5.0/foundation/arkui/napi/native_engine/
H A Dnative_api.cpp2760 Local<panda::TypedArrayRef> typedArray = Local<panda::TypedArrayRef>(value); in napi_get_typedarray_info() local
2762 *type = static_cast<napi_typedarray_type>(engine->GetTypedArrayType(typedArray)); in napi_get_typedarray_info()
2765 *length = typedArray->ByteLength(vm); in napi_get_typedarray_info()
2768 …*data = static_cast<uint8_t*>(typedArray->GetArrayBuffer(vm)->GetBuffer(vm)) + typedArray->ByteOff… in napi_get_typedarray_info()
2771 *arraybuffer = JsValueFromLocalValue(typedArray->GetArrayBuffer(vm)); in napi_get_typedarray_info()
2774 *byte_offset = typedArray->ByteOffset(vm); in napi_get_typedarray_info()
2777 Local<panda::SendableTypedArrayRef> typedArray = Local<panda::SendableTypedArrayRef>(value); in napi_get_typedarray_info() local
2782 *length = typedArray->ByteLength(vm); in napi_get_typedarray_info()
2785 …*data = static_cast<uint8_t*>(typedArray->GetArrayBuffer(vm)->GetBuffer(vm)) + typedArray->ByteOff… in napi_get_typedarray_info()
2788 *arraybuffer = JsValueFromLocalValue(typedArray->GetArrayBuffer(vm)); in napi_get_typedarray_info()
[all …]
H A Dnative_engine.h127 … virtual NativeTypedArrayType GetTypedArrayType(panda::Local<panda::TypedArrayRef> typedArray) = 0;
128 …ypedArrayType GetSendableTypedArrayType(panda::Local<panda::SendableTypedArrayRef> typedArray) = 0;
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_arg.cpp280 bool typedArray = false; in GenBufferData() local
285 napi_is_typedarray(env_, data, &typedArray); in GenBufferData()
300 } else if (typedArray) { in GenBufferData()
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-about-array.md492 napi_value typedArray = nullptr;
497 napi_create_typedarray(env, arrayType, length, arrayBuffer, 0, &typedArray);
498 return typedArray;
529 let typedArray = testNapi.createTypedArray<Int8Array>(testNapi.TypedArrayTypes["INT8_ARRAY"]);
530 if (typedArray instanceof Int8Array) {
H A Duse-jsvm-about-array.md202 JSVM_Value typedArray = nullptr;
207 …JSVM_Status status = OH_JSVM_CreateTypedarray(env, arrayType, length, arrayBuffer, 0, &typedArray);
213 return typedArray;
/ohos5.0/docs/en/application-dev/reference/apis-arkts/
H A Djs-apis-worker.md2313 …ple, objects created using **{}** or **new Object**), ArrayBuffer, and typedArray. (Note that only…
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ipc-kit/
H A Djs-apis-rpc.md3458 …/> 6.The element does not exist in the array; <br/> 7.Failed to obtain typedArray information; <br…
/ohos5.0/docs/en/application-dev/reference/apis-ipc-kit/
H A Djs-apis-rpc.md3450 …br> 6.The element does not exist in the array; <br> 7.Failed to obtain typedArray information; <br…