/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/ |
D | raw_stream_data.cpp | 29 … raw->InitStreamData(std::move(data.buffer), data.bufLen, std::move(data.extBuffer), data.extLen); in MakeRawStream() 34 std::unique_ptr<IStream> IStream::MakeRawStream(const char *buf, ssize_t bufLen, const StreamFrameI… in MakeRawStream() argument 40 if (bufLen <= 0 || bufLen > MAX_STREAM_LEN) { in MakeRawStream() 47 auto buffer = std::make_unique<char[]>(bufLen); in MakeRawStream() 48 auto ret = memcpy_s(buffer.get(), bufLen, buf, bufLen); in MakeRawStream() 52 raw->InitStreamData(std::move(buffer), bufLen, nullptr, 0); in MakeRawStream() 57 auto buffer = std::make_unique<char[]>(bufLen + RawStreamData::FRAME_HEADER_LEN); in MakeRawStream() 58 auto ret = memcpy_s(buffer.get() + RawStreamData::FRAME_HEADER_LEN, bufLen, buf, bufLen); in MakeRawStream() 62 RawStreamData::InsertBufferLength(bufLen, RawStreamData::FRAME_HEADER_LEN, in MakeRawStream() 65 raw->InitStreamData(std::move(buffer), bufLen + RawStreamData::FRAME_HEADER_LEN, nullptr, 0); in MakeRawStream() [all …]
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/obex/ |
D | obex_body.cpp | 23 ObexArrayBodyObject::ObexArrayBodyObject(const uint8_t *buf, size_t bufLen) in ObexArrayBodyObject() argument 25 auto ret = PrivateWrite(buf, bufLen); in ObexArrayBodyObject() 31 size_t ObexArrayBodyObject::Read(uint8_t *buf, size_t bufLen) in Read() argument 34 size_t readSize = bufLen; in Read() 46 size_t ObexArrayBodyObject::Write(const uint8_t *buf, size_t bufLen) in Write() argument 48 return PrivateWrite(buf, bufLen); in Write() 51 size_t ObexArrayBodyObject::PrivateWrite(const uint8_t *buf, size_t bufLen) in PrivateWrite() argument 54 body_.insert(body_.end(), buf, buf + bufLen); in PrivateWrite() 55 return bufLen; in PrivateWrite()
|
D | obex_body.h | 28 virtual size_t Read(uint8_t *buf, size_t bufLen) = 0; 29 virtual size_t Write(const uint8_t *buf, size_t bufLen) = 0; 35 ObexArrayBodyObject(const uint8_t *buf, size_t bufLen); 38 size_t Read(uint8_t *buf, size_t bufLen) override; 39 size_t Write(const uint8_t *buf, size_t bufLen) override; 43 size_t PrivateWrite(const uint8_t *buf, size_t bufLen);
|
/foundation/distributeddatamgr/distributedfile/interfaces/kits/js/src/mod_fileio/ |
D | common_func.cpp | 35 static tuple<bool, void *, int> GetActualBuf(napi_env env, void *rawBuf, int64_t bufLen, NVal op) in GetActualBuf() argument 45 } else if (opOffset > bufLen) { in GetActualBuf() 58 static tuple<bool, size_t> GetActualLen(napi_env env, int64_t bufLen, int64_t bufOff, NVal op) in GetActualLen() argument 71 retLen = bufLen - bufOff; in GetActualLen() 72 } else if (opLength + bufOff > bufLen) { in GetActualLen() 79 retLen = bufLen - bufOff; in GetActualLen() 116 int64_t bufLen; in GetReadArg() local 118 tie(succ, buf, bufLen) = txt.ToArraybuffer(); in GetReadArg() 125 tie(succ, retBuf, offset) = GetActualBuf(env, buf, bufLen, op); in GetReadArg() 131 tie(succ, retLen) = GetActualLen(env, bufLen, bufOff, op); in GetReadArg() [all …]
|
/foundation/distributeddatamgr/objectstore/frameworks/jskitsimpl/src/adaptor/ |
D | js_module_init.cpp | 59 const char **buf, int *bufLen) in NAPI_data_distributedDataObject_GetJSCode() argument 65 if (bufLen != nullptr) { in NAPI_data_distributedDataObject_GetJSCode() 66 *bufLen = _binary_distributed_data_object_js_end - _binary_distributed_data_object_js_start; in NAPI_data_distributedDataObject_GetJSCode() 71 const char **buf, int *bufLen) in NAPI_data_distributedDataObject_GetABCCode() argument 77 if (bufLen != nullptr) { in NAPI_data_distributedDataObject_GetABCCode() 78 … *bufLen = _binary_distributed_data_object_abc_end - _binary_distributed_data_object_abc_start; in NAPI_data_distributedDataObject_GetABCCode()
|
/foundation/multimedia/medialibrary_standard/frameworks/kitsimpl/medialibrary/src/ |
D | native_module_ohos_medialibrary.cpp | 45 int* bufLen) in NAPI_multimedia_mediaLibrary_GetJSCode() argument 51 if (bufLen != nullptr) { in NAPI_multimedia_mediaLibrary_GetJSCode() 52 *bufLen = _binary_medialibraryinf_js_end - _binary_medialibraryinf_js_start; in NAPI_multimedia_mediaLibrary_GetJSCode() 57 int* bufLen) in NAPI_multimedia_mediaLibrary_GetABCCode() argument 63 if (bufLen != nullptr) { in NAPI_multimedia_mediaLibrary_GetABCCode() 64 *bufLen = _binary_medialibraryinf_abc_end - _binary_medialibraryinf_abc_start; in NAPI_multimedia_mediaLibrary_GetABCCode()
|
/foundation/ace/ace_engine_lite/frameworks/src/core/context/ |
D | js_framework_raw.cpp | 28 const char *GetFrameworkRawBuffer(bool snapshotMode, size_t &bufLen) in GetFrameworkRawBuffer() argument 31 bufLen = sizeof(g_frameworkBCBuffer); in GetFrameworkRawBuffer() 34 bufLen = strlen(g_frameworkJSBuffer); in GetFrameworkRawBuffer()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/datashare_ext_ability_context/ |
D | datashare_ext_ability_context_module.cpp | 36 void NAPI_application_DataShareExtensionAbilityContext_GetJSCode(const char **buf, int *bufLen) in NAPI_application_DataShareExtensionAbilityContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_DataShareExtensionAbilityContext_GetJSCode() 43 …*bufLen = _binary_datashare_ext_ability_context_js_end - _binary_datashare_ext_ability_context_js_… in NAPI_application_DataShareExtensionAbilityContext_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/app/context/ |
D | context_module.cpp | 36 void NAPI_application_Context_GetJSCode(const char **buf, int *bufLen) in NAPI_application_Context_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_Context_GetJSCode() 43 *bufLen = _binary_context_js_end - _binary_context_js_start; in NAPI_application_Context_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/ability_context/ |
D | ability_context_module.cpp | 36 void NAPI_application_AbilityContext_GetJSCode(const char **buf, int *bufLen) in NAPI_application_AbilityContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_AbilityContext_GetJSCode() 43 *bufLen = _binary_ability_context_js_end - _binary_ability_context_js_start; in NAPI_application_AbilityContext_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/app/test_runner/ |
D | test_runner_module.cpp | 35 const char **buf, int *bufLen) in NAPI_application_testRunner_GetJSCode() argument 41 if (bufLen != nullptr) { in NAPI_application_testRunner_GetJSCode() 42 *bufLen = _binary_test_runner_js_end - _binary_test_runner_js_start; in NAPI_application_testRunner_GetJSCode()
|
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/work_scheduler_extension_context/ |
D | work_scheduler_extension_context_module.cpp | 36 void NAPI_WorkSchedulerExtensionContext_GetJSCode(const char **buf, int *bufLen) in NAPI_WorkSchedulerExtensionContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_WorkSchedulerExtensionContext_GetJSCode() 43 *bufLen = _binary_work_scheduler_extension_context_js_end - in NAPI_WorkSchedulerExtensionContext_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/ability/ |
D | ability_module.cpp | 36 void NAPI_application_Ability_GetJSCode(const char **buf, int *bufLen) in NAPI_application_Ability_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_Ability_GetJSCode() 43 *bufLen = _binary_ability_js_end - _binary_ability_js_start; in NAPI_application_Ability_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/static_subscriber_extension_context/ |
D | static_subscriber_extension_context_module.cpp | 36 void NAPI_application_StaticSubscriberExtensionContext_GetJSCode(const char **buf, int *bufLen) in NAPI_application_StaticSubscriberExtensionContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_StaticSubscriberExtensionContext_GetJSCode() 43 *bufLen = _binary_static_subscriber_extension_context_js_end - in NAPI_application_StaticSubscriberExtensionContext_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/extensioncontext/ |
D | extension_context_module.cpp | 36 void NAPI_application_ExtensionContext_GetJSCode(const char **buf, int *bufLen) in NAPI_application_ExtensionContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_ExtensionContext_GetJSCode() 43 *bufLen = _binary_extension_context_js_end - _binary_extension_context_js_start; in NAPI_application_ExtensionContext_GetJSCode()
|
/foundation/windowmanager/interfaces/kits/napi/window_runtime/window_stage_napi/ |
D | window_stage_module.cpp | 35 void NAPI_application_WindowStage_GetJSCode(const char **buf, int *bufLen) in NAPI_application_WindowStage_GetJSCode() argument 41 if (bufLen != nullptr) { in NAPI_application_WindowStage_GetJSCode() 42 *bufLen = _binary_window_stage_js_end - _binary_window_stage_js_start; in NAPI_application_WindowStage_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/form_extension_context/ |
D | form_extension_context_module.cpp | 36 void NAPI_application_FormExtensionContext_GetJSCode(const char **buf, int *bufLen) in NAPI_application_FormExtensionContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_FormExtensionContext_GetJSCode() 43 *bufLen = _binary_form_extension_context_js_end - _binary_form_extension_context_js_start; in NAPI_application_FormExtensionContext_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/form_extension/ |
D | form_extension_module.cpp | 36 void NAPI_application_FormExtension_GetJSCode(const char **buf, int *bufLen) in NAPI_application_FormExtension_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_FormExtension_GetJSCode() 43 *bufLen = _binary_form_extension_js_end - _binary_form_extension_js_start; in NAPI_application_FormExtension_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/service_extension_context/ |
D | service_extension_context_module.cpp | 36 void NAPI_application_ServiceExtensionContext_GetJSCode(const char **buf, int *bufLen) in NAPI_application_ServiceExtensionContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_ServiceExtensionContext_GetJSCode() 43 … *bufLen = _binary_service_extension_context_js_end - _binary_service_extension_context_js_start; in NAPI_application_ServiceExtensionContext_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/serviceextension/ |
D | service_extension_module.cpp | 36 void NAPI_application_ServiceExtension_GetJSCode(const char **buf, int *bufLen) in NAPI_application_ServiceExtension_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_ServiceExtension_GetJSCode() 43 *bufLen = _binary_service_extension_js_end - _binary_service_extension_js_start; in NAPI_application_ServiceExtension_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/service_extension_ability/ |
D | service_extension_ability_module.cpp | 36 void NAPI_application_ServiceExtensionAbility_GetJSCode(const char **buf, int *bufLen) in NAPI_application_ServiceExtensionAbility_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_ServiceExtensionAbility_GetJSCode() 43 … *bufLen = _binary_service_extension_ability_js_end - _binary_service_extension_ability_js_start; in NAPI_application_ServiceExtensionAbility_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/static_subscriber_extension/ |
D | static_subscriber_extension_ability_module.cpp | 36 void NAPI_application_StaticSubscriberExtensionAbility_GetJSCode(const char **buf, int *bufLen) in NAPI_application_StaticSubscriberExtensionAbility_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_StaticSubscriberExtensionAbility_GetJSCode() 43 *bufLen = _binary_static_subscriber_extension_ability_js_end - in NAPI_application_StaticSubscriberExtensionAbility_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/app/ability_stage/ |
D | ability_stage_module.cpp | 36 void NAPI_application_AbilityStage_GetJSCode(const char **buf, int *bufLen) in NAPI_application_AbilityStage_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_AbilityStage_GetJSCode() 43 *bufLen = _binary_ability_stage_js_end - _binary_ability_stage_js_start; in NAPI_application_AbilityStage_GetJSCode()
|
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/work_scheduler_extension/ |
D | work_scheduler_extension_ability_module.cpp | 36 void NAPI_WorkSchedulerExtensionAbility_GetJSCode(const char **buf, int *bufLen) in NAPI_WorkSchedulerExtensionAbility_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_WorkSchedulerExtensionAbility_GetJSCode() 43 *bufLen = _binary_work_scheduler_extension_ability_js_end - in NAPI_WorkSchedulerExtensionAbility_GetJSCode()
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/app/ability_stage_context/ |
D | ability_stage_context_module.cpp | 36 void NAPI_application_AbilityStageContext_GetJSCode(const char **buf, int *bufLen) in NAPI_application_AbilityStageContext_GetJSCode() argument 42 if (bufLen != nullptr) { in NAPI_application_AbilityStageContext_GetJSCode() 43 *bufLen = _binary_ability_stage_context_js_end - _binary_ability_stage_context_js_start; in NAPI_application_AbilityStageContext_GetJSCode()
|