Home
last modified time | relevance | path

Searched refs:ByteLength (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_canvas_image_data.cpp53 args.SetSize(static_cast<size_t>(arrayBuffer->ByteLength())); in Constructor()
56 if ((arrayBuffer->ByteLength() != 0) && in Constructor()
57 (memset_s(buffer, arrayBuffer->ByteLength(), 0, arrayBuffer->ByteLength()))) { in Constructor()
61 … JSRef<JSUint8ClampedArray>::New(arrayBuffer->GetLocalHandle(), 0, arrayBuffer->ByteLength()); in Constructor()
65 args.SetSize(static_cast<size_t>(buffer->ByteLength())); in Constructor()
66 if ((static_cast<CanvasUnit>(unit) == CanvasUnit::PX) && (buffer->ByteLength() != result)) { in Constructor()
H A Djs_canvas_renderer.cpp641 …Ref<JSUint8ClampedArray>::New(zeroArrayBuffer->GetLocalHandle(), 0, zeroArrayBuffer->ByteLength()); in JsCreateImageData()
652 … JSRef<JSUint8ClampedArray>::New(arrayBuffer->GetLocalHandle(), 0, arrayBuffer->ByteLength()); in JsCreateImageData()
691 int32_t bufferLength = arrayBuffer->ByteLength(); in JsPutImageData()
783 …Ref<JSUint8ClampedArray>::New(zeroArrayBuffer->GetLocalHandle(), 0, zeroArrayBuffer->ByteLength()); in JsGetImageData()
790 …ray = JSRef<JSUint8ClampedArray>::New(arrayBuffer->GetLocalHandle(), 0, arrayBuffer->ByteLength()); in JsGetImageData()
/ohos5.0/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/
H A Dark_interop_napi.cpp508 return BIT_CAST(value, Local<ArrayBufferRef>)->ByteLength(vm); in ARKTS_GetArrayBufferLength()
511 return arr->ByteLength(vm) - arr->ByteOffset(vm); in ARKTS_GetArrayBufferLength()
514 return arr->ByteLength() - arr->ByteOffset(); in ARKTS_GetArrayBufferLength()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
H A Djsi_types.cpp236 int32_t JsiArrayBuffer::ByteLength() const in ByteLength() function in OHOS::Ace::Framework::JsiArrayBuffer
238 return GetHandle()->ByteLength(GetEcmaVM()); in ByteLength()
H A Djsi_types.h159 int32_t ByteLength() const;
/ohos5.0/foundation/arkui/napi/native_engine/
H A Dnative_api.cpp2489 *byte_length = res->ByteLength(vm); in napi_get_arraybuffer_info()
2495 *byte_length = res->ByteLength(vm); in napi_get_arraybuffer_info()
2654 *length = res->ByteLength(vm); in napi_get_buffer_info()
2765 *length = typedArray->ByteLength(vm); in napi_get_typedarray_info()
2782 *length = typedArray->ByteLength(vm); in napi_get_typedarray_info()
2816 if (length + byte_offset > static_cast<size_t>(res->ByteLength(vm))) { in napi_create_dataview()
4111 *byte_length = res->ByteLength(vm); in napi_get_shared_array_buffer_info()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_string.cpp851 size_t bufferSize = static_cast<size_t>(arrayBuffer->ByteLength()); in Unmarshalling()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_web.cpp1186 int32_t bufferSize = arrayBuffer->ByteLength(); in SetResponseData()