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 D | js_canvas_image_data.cpp | 53 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 D | js_canvas_renderer.cpp | 641 …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 D | ark_interop_napi.cpp | 508 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 D | jsi_types.cpp | 236 int32_t JsiArrayBuffer::ByteLength() const in ByteLength() function in OHOS::Ace::Framework::JsiArrayBuffer 238 return GetHandle()->ByteLength(GetEcmaVM()); in ByteLength()
|
H A D | jsi_types.h | 159 int32_t ByteLength() const;
|
/ohos5.0/foundation/arkui/napi/native_engine/ |
H A D | native_api.cpp | 2489 *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 D | js_span_string.cpp | 851 size_t bufferSize = static_cast<size_t>(arrayBuffer->ByteLength()); in Unmarshalling()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_web.cpp | 1186 int32_t bufferSize = arrayBuffer->ByteLength(); in SetResponseData()
|