Home
last modified time | relevance | path

Searched refs:resultBuffer (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/cj/include/
H A Dimage_packer_impl.h56 uint8_t* resultBuffer = static_cast<uint8_t*>(malloc(sizeof(uint8_t) * bufferSize)); in CommonPacking() local
57 if (resultBuffer == nullptr) { in CommonPacking()
62 uint32_t packingRet = real_->StartPacking(resultBuffer, bufferSize, option); in CommonPacking()
65 free(resultBuffer); in CommonPacking()
72 free(resultBuffer); in CommonPacking()
80 free(resultBuffer); in CommonPacking()
85 return std::make_tuple(SUCCESS_CODE, resultBuffer, packedSize); in CommonPacking()
/ohos5.0/foundation/bundlemanager/distributed_bundle_framework/services/dbms/src/
H A Dimage_compress.cpp178 uint8_t *resultBuffer = reinterpret_cast<uint8_t *>(malloc(BUFFER_SIZE)); in CompressImageByContent() local
179 if (resultBuffer == nullptr) { in CompressImageByContent()
183 imagePacker.StartPacking(resultBuffer, BUFFER_SIZE, packOption); in CompressImageByContent()
189 if (memcpy_s(result, compressedSize, resultBuffer, compressedSize) != EOK) { in CompressImageByContent()
190 free(resultBuffer); in CompressImageByContent()
194 free(resultBuffer); in CompressImageByContent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/codec/
H A Dstandard_function_codec.cpp22 …tionCodec::EncodeFunctionCall(const FunctionCall& functionCall, std::vector<uint8_t>& resultBuffer) in EncodeFunctionCall() argument
29 StandardCodecBufferWriter bufferWriter(resultBuffer); in EncodeFunctionCall()
H A Dfunction_codec.h33 … bool EncodeFunctionCall(const FunctionCall& functionCall, std::vector<uint8_t>& resultBuffer) = 0;
H A Dstandard_function_codec.h35 …bool EncodeFunctionCall(const FunctionCall& functionCall, std::vector<uint8_t>& resultBuffer) over…
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_source_util.cpp84 uint8_t *resultBuffer = reinterpret_cast<uint8_t *>(malloc(bufferSize)); in PackImage() local
85 if (resultBuffer == nullptr) { in PackImage()
89 imagePacker.StartPacking(resultBuffer, bufferSize, option); in PackImage()
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/
H A Djs_types.cpp62 napi_value resultBuffer = nullptr; in IsArrayBufferView() local
64 &resultData, &resultBuffer, &byteOffset); in IsArrayBufferView()
211 napi_value resultBuffer = nullptr; in GetTypeArrayInfo() local
213 &resultData, &resultBuffer, &byteOffset); in GetTypeArrayInfo()
280 napi_value resultBuffer = nullptr; in IsInt8Array() local
282 &resultData, &resultBuffer, &byteOffset); in IsInt8Array()
H A Djs_textencoder.cpp73 napi_value resultBuffer = nullptr; in EncodeInto() local
74 …env, napi_get_typedarray_info(env, dest, &type, &length, &resultData, &resultBuffer, &byteOffset)); in EncodeInto()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-styled-string-sys.md126 let resultBuffer = StyledString.marshalling(this.styledString)
127 this.buff = new Uint8Array(resultBuffer)
/ohos5.0/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dimage_packer_napi.cpp102 std::unique_ptr<uint8_t[]> resultBuffer; member
262 context->resultBuffer = std::make_unique<uint8_t[]>( in STATIC_EXEC_FUNC()
266 if (context->resultBuffer == nullptr) { in STATIC_EXEC_FUNC()
270 auto startRes = context->rImagePacker->StartPacking(context->resultBuffer.get(), in STATIC_EXEC_FUNC()
339 if (!ImageNapiUtils::CreateArrayBuffer(env, context->resultBuffer.get(), in STATIC_COMPLETE_FUNC()
347 context->resultBuffer = nullptr; in STATIC_COMPLETE_FUNC()
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-styled-string-sys.md126 let resultBuffer = StyledString.marshalling(this.styledString)
127 this.buff = new Uint8Array(resultBuffer)
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/test/
H A Dtest_util.cpp77 napi_value resultBuffer = nullptr; variable
78 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset);
94 napi_value resultBuffer = nullptr; variable
95 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset);
113 napi_value resultBuffer = nullptr; variable
114 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset);
133 napi_value resultBuffer = nullptr; variable
134 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset);
153 napi_value resultBuffer = nullptr; variable
154 napi_get_typedarray_info(env, arr, &type, &length, &resultData, &resultBuffer, &byteOffset);
/ohos5.0/commonlibrary/ets_utils/js_api_module/buffer/
H A Dnative_module_buffer.cpp385 napi_value resultBuffer = nullptr; in BufferConstructorInner() local
386 …if (napi_get_typedarray_info(env, argv[1], &type, &aryLen, &resultData, &resultBuffer, &offset) !=… in BufferConstructorInner()