Home
last modified time | relevance | path

Searched +defs:string +defs:length (Results 1 – 25 of 101) sorted by relevance

12345

/foundation/communication/dsoftbus/core/common/json_utils/
Dsoftbus_json_utils.c24 int32_t GetStringItemByJsonObject(const cJSON *json, const char * const string, char *target, in GetStringItemByJsonObject()
36 uint32_t length = strlen(item->valuestring); in GetStringItemByJsonObject() local
49 bool GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target, in GetJsonObjectStringItem()
61 uint32_t length = strlen(item->valuestring); in GetJsonObjectStringItem() local
74 bool GetJsonObjectNumberItem(const cJSON *json, const char * const string, int32_t *target) in GetJsonObjectNumberItem()
89 bool GetJsonObjectSignedNumberItem(const cJSON *json, const char * const string, int32_t *target) in GetJsonObjectSignedNumberItem()
104 bool GetJsonObjectDoubleItem(const cJSON *json, const char * const string, double *target) in GetJsonObjectDoubleItem()
119 bool GetJsonObjectNumber16Item(const cJSON *json, const char * const string, uint16_t *target) in GetJsonObjectNumber16Item()
134 bool GetJsonObjectNumber64Item(const cJSON *json, const char * const string, int64_t *target) in GetJsonObjectNumber64Item()
149 bool GetJsonObjectSignedNumber64Item(const cJSON *json, const char * const string, int64_t *target) in GetJsonObjectSignedNumber64Item()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
Dcommit_history_sync.cpp48 void CommitHistorySyncRequestPacket::SetCommitMap(std::map<std::string, MultiVerCommitNode> &inMap) in SetCommitMap()
53 void CommitHistorySyncRequestPacket::GetCommitMap(std::map<std::string, MultiVerCommitNode> &outMap… in GetCommitMap()
141 int CommitHistorySync::Serialization(uint8_t *buffer, uint32_t length, const Message *inMsg) in Serialization()
157 int CommitHistorySync::DeSerialization(const uint8_t *buffer, uint32_t length, Message *inMsg) in DeSerialization()
203 func.serializeFunc = [](uint8_t *buffer, uint32_t length, const Message *inMsg) { in RegisterTransformFunc()
206 func.deserializeFunc = [](const uint8_t *buffer, uint32_t length, Message *inMsg) { in RegisterTransformFunc()
339 int CommitHistorySync::RequestPacketSerialization(uint8_t *buffer, uint32_t length, const Message *… in RequestPacketSerialization()
383 int CommitHistorySync::RequestPacketDeSerialization(const uint8_t *buffer, uint32_t length, Message… in RequestPacketDeSerialization()
453 int CommitHistorySync::AckPacketSerialization(uint8_t *buffer, uint32_t length, const Message *inMs… in AckPacketSerialization()
492 int CommitHistorySync::AckPacketDeSerialization(const uint8_t *buffer, uint32_t length, Message *in… in AckPacketDeSerialization()
[all …]
Dquery_sync_water_mark_helper.cpp220 uint64_t length = CalculateQueryWaterMarkSize(queryWaterMark); in SerializeQueryWaterMark() local
258 uint64_t length = Parcel::GetUInt32Len(); // version in CalculateQueryWaterMarkSize() local
393 uint64_t length = CalculateDeleteWaterMarkSize(); in SerializeDeleteWaterMark() local
424 uint64_t length = Parcel::GetUInt32Len(); // version in CalculateDeleteWaterMarkSize() local
477 … [](const std::pair<std::string, Timestamp> &w1, const std::pair<std::string, Timestamp> &w2) { in RemoveLeastUsedQuerySyncItems()
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/local/src/
Dcast_local_file_channel_common.cpp75 std::optional<size_t> CheckAndGetHttpHeader(const uint8_t *buffer, unsigned int length, in CheckAndGetHttpHeader()
139 void ParseHttpHeaderList(std::vector<std::string> &hdrList, std::map<std::string, std::string> &req… in ParseHttpHeaderList()
215 bool ParseHttpRequest(const uint8_t *buffer, int length, std::map<std::string, std::string> &reques… in ParseHttpRequest()
249 bool ParseHttpResponse(const uint8_t *buffer, int length, std::map<std::string, std::string> &respo… in ParseHttpResponse()
Dcast_local_file_channel_client.cpp180 bool CastLocalFileChannelClient::ProcessServerResponse(const uint8_t *buffer, unsigned int length, in ProcessServerResponse()
181 std::map<std::string, std::string> &response, size_t &dataOffset) in ProcessServerResponse()
197 void CastLocalFileChannelClient::OnDataReceived(const uint8_t *buffer, unsigned int length, long ti… in OnDataReceived()
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/local/src/
Dcast_local_file_channel_common.cpp75 std::optional<size_t> CheckAndGetHttpHeader(const uint8_t *buffer, unsigned int length, in CheckAndGetHttpHeader()
139 void ParseHttpHeaderList(std::vector<std::string> &hdrList, std::map<std::string, std::string> &req… in ParseHttpHeaderList()
214 bool ParseHttpRequest(const uint8_t *buffer, int length, std::map<std::string, std::string> &reques… in ParseHttpRequest()
248 bool ParseHttpResponse(const uint8_t *buffer, int length, std::map<std::string, std::string> &respo… in ParseHttpResponse()
Dcast_local_file_channel_client.cpp160 bool CastLocalFileChannelClient::ProcessServerResponse(const uint8_t *buffer, unsigned int length, in ProcessServerResponse()
161 std::map<std::string, std::string> &response, size_t &dataOffset) in ProcessServerResponse()
177 void CastLocalFileChannelClient::OnDataReceived(const uint8_t *buffer, unsigned int length, long ti… in OnDataReceived()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
Draw_data_parser.cpp23 size_t RawDataParser::ParserRawData(const uint8_t *data, size_t length, Asset &asset) in ParserRawData()
57 size_t RawDataParser::ParserRawData(const uint8_t *data, size_t length, Assets &assets) in ParserRawData()
123 size_t RawDataParser::ParserRawData(const uint8_t *data, size_t length, std::map<std::string, Asset… in ParserRawData()
135 size_t RawDataParser::ParserRawData(const uint8_t *data, size_t length, BigInteger &bigint) in ParserRawData()
179 size_t RawDataParser::ParserRawData(const uint8_t *data, size_t length, RawDataParser::Floats &floa… in ParserRawData()
213 std::vector<uint8_t> RawDataParser::PackageRawData(const std::map<std::string, Asset> &assets) in PackageRawData()
/foundation/arkui/ace_engine/frameworks/base/resource/
Dasset_manager.h28 uint32_t length = 0; member
51 virtual bool GetFileInfo(const std::string& /* fileName */, MediaFileInfo& /* fileInfo */) const in GetFileInfo()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/common/
Ddistributeddb_tools_test.cpp39 int length = readlink("/proc/self/exe", buffer, maxFileLength); in GetCurrentDir() local
135 std::map<std::string, DBStatus>& statuses, const Query &query) in SyncTestWithQuery()
141 [&statuses, &syncLock, &syncCondVar](const std::map<std::string, DBStatus>& statusMap) { in SyncTestWithQuery()
157 SyncMode mode, std::map<std::string, DBStatus>& statuses) in SyncTest()
163 [&statuses, &syncLock, &syncCondVar](const std::map<std::string, DBStatus>& statusMap) { in SyncTest()
/foundation/communication/netmanager_ext/services/mdnsmanager/src/
Dmdns_packet_parser.cpp189 …nsPayloadParser::ParseRData(const uint8_t *begin, const MDnsPayload &payload, int type, int length, in ParseRData()
261 …yloadParser::ParseTxt(const uint8_t *begin, const MDnsPayload &payload, int length, std::any &data) in ParseTxt()
315 std::map<std::string, uint16_t> &strCacheMap) in Serialize()
349 … MDnsPayload *cachedPayload, std::map<std::string, uint16_t> &strCacheMap) in SerializeQuestion()
357 … MDnsPayload *cachedPayload, std::map<std::string, uint16_t> &strCacheMap) in SerializeRR()
371 std::map<std::string, uint16_t> &strCacheMap) in SerializeRData()
392 std::map<std::string, uint16_t> &strCacheMap) in SerializeDnsString()
/foundation/communication/netstack/frameworks/cj/websocket/src/
Dnet_websocket_utils.cpp49 CArrString Map2CArrString(std::map<std::string, std::string> map) in Map2CArrString()
102 SecureChar::SecureChar(const uint8_t *secureChar, size_t length) in SecureChar()
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/src/
Drtsp_common.cpp46 void RtspCommon::SplitParameter(std::list<std::string> &lines, std::list<std::pair<std::string, std… in SplitParameter()
82std::unordered_map<std::string, std::string> &header, std::list<std::string> &body) in ParseMessage()
112 int32_t length = atoi(header.at(RTSP_TOKEN_CONTENT_LENGTH).c_str()); in ParseMessage() local
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
Drs_profiler_utils.cpp133 const auto length = vsnprintf(nullptr, 0, format, temporary); in Format() local
163 std::vector<std::string> Utils::Split(const std::string& string) in Split()
171 void Utils::Replace(const std::string& susbtring, std::string& string) in Replace()
180 std::string Utils::ExtractNumber(const std::string& string) in ExtractNumber()
185 int8_t Utils::ToInt8(const std::string& string) in ToInt8()
190 int16_t Utils::ToInt16(const std::string& string) in ToInt16()
195 int32_t Utils::ToInt32(const std::string& string) in ToInt32()
200 int64_t Utils::ToInt64(const std::string& string) in ToInt64()
205 uint8_t Utils::ToUint8(const std::string& string) in ToUint8()
210 uint16_t Utils::ToUint16(const std::string& string) in ToUint16()
[all …]
/foundation/distributeddatamgr/kv_store/test/distributedtest/single_kvstore_client/
Ddistributed_test.cpp61 void SyncCompleted(const std::map<std::string, Status> &results) override in SyncCompleted()
137 [&](const std::string &returnBuf, int length) -> bool { in GetRemote()
160 [&](const std::string &returnBuf, int length) -> bool { in __anonf0bb4c8d0202()
/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
Ddom_panel.cpp24 inline T ConvertStrToEnum(const char* key, const LinearMapNode<T>* map, size_t length, T defaultVal… in ConvertStrToEnum()
68 bool DOMPanel::SetSpecializedAttr(const std::pair<std::string, std::string>& attr) in SetSpecializedAttr()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/
Djsi_declarative_engine.h170 void SetPkgNameList(const std::map<std::string, std::string>& map) in SetPkgNameList()
175 void SetPkgAliasList(const std::map<std::string, std::string>& map) in SetPkgAliasList()
180 …void SetpkgContextInfoList(const std::map<std::string, std::vector<std::vector<std::string>>>& map) in SetpkgContextInfoList()
196 bool InitAceModule(const uint8_t* start, size_t length) in InitAceModule()
517 void SetPkgNameList(const std::map<std::string, std::string>& map) override in SetPkgNameList()
522 void SetPkgAliasList(const std::map<std::string, std::string>& map) override in SetPkgAliasList()
527 …void SetpkgContextInfoList(const std::map<std::string, std::vector<std::vector<std::string>>>& map… in SetpkgContextInfoList()
/foundation/ability/idl_tool/util/
Dstring.cpp111 String::String(const char* string) in String()
124 String::String(const char* string, size_t length) in String()
223 const char* string = string_; in GetHashCode() local
255 int String::IndexOf(const char* string, int fromIndex) const in IndexOf() argument
308 int String::LastIndexOf(const char* string, int fromIndex) const in LastIndexOf() argument
338 int String::LastIndexOfInternal(const char* string, int fromIndex) const in LastIndexOfInternal() argument
574 String& String::operator=(const char* string) in operator =()
663 String string; in Format() local
/foundation/deviceprofile/device_info_manager/common/src/utils/
Dipc_utils.cpp154 int32_t length = static_cast<int32_t>(params.size()); in Marshalling() local
167 bool IpcUtils::Marshalling(MessageParcel& parcel, const std::map<std::string, std::string>& params) in Marshalling()
181 bool IpcUtils::Marshalling(MessageParcel& parcel, const std::map<std::string, in Marshalling()
432 int32_t length = parcel.ReadInt32(); in UnMarshalling() local
452 bool IpcUtils::UnMarshalling(MessageParcel& parcel, std::map<std::string, std::string>& params) in UnMarshalling()
474 bool IpcUtils::UnMarshalling(MessageParcel& parcel, std::map<std::string, in UnMarshalling()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
Djs_app_bar_view.cpp125 void JSAppBar::GetParamsFromJSArray(const JSRef<JSArray>& jsArray, std::map<std::string, std::strin… in GetParamsFromJSArray()
127 int length = static_cast<int>(jsArray->Length()); in GetParamsFromJSArray() local
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
Dcjson_parser.cpp82 uint8_t length = FormatString(format, arg, values, isPlural, num); in FillPlaceholder() local
87 uint8_t length = FormatString(format, arg, values, num); in FillPlaceholder() local
107 uint8_t length = 0; in FormatString() local
217 char *CJSONParser::ToString(ListNode *node, uint8_t length) in ToString()
270 char *CJSONParser::SubStr(const char *src, size_t start, size_t length) in SubStr()
816 int CJSONParser::IndexOf(const char *string, char delemeter, int index) in IndexOf()
824 int length = strlen(string); in IndexOf() local
/foundation/window/window_manager/dmserver/src/
Ddisplay_manager_config.cpp45 size_t length = str.size(); in Split() local
225 for (auto& string : stringConfig_) { in DumpConfig() local
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
Dhdi_device_v2_1.cpp374 void* HDIDeviceV2_1::AllocateBuffer(size_t length) in AllocateBuffer()
396 OH_NN_ReturnCode HDIDeviceV2_1::AllocateBuffer(size_t length, int& fd) in AllocateBuffer()
413 OH_NN_ReturnCode HDIDeviceV2_1::ReleaseBuffer(int fd, size_t length) in ReleaseBuffer()
423 void* HDIDeviceV2_1::AllocateTensorBuffer(size_t length, std::shared_ptr<TensorDesc> tensor) in AllocateTensorBuffer()
428 void* HDIDeviceV2_1::AllocateTensorBuffer(size_t length, std::shared_ptr<NNTensor> tensor) in AllocateTensorBuffer()
570const std::map<std::string, std::vector<int8_t>>& extensions, in PrepareOfflineModel()
Dhdi_device_v2_0.cpp379 void* HDIDeviceV2_0::AllocateBuffer(size_t length) in AllocateBuffer()
401 OH_NN_ReturnCode HDIDeviceV2_0::AllocateBuffer(size_t length, int& fd) in AllocateBuffer()
418 OH_NN_ReturnCode HDIDeviceV2_0::ReleaseBuffer(int fd, size_t length) in ReleaseBuffer()
428 void* HDIDeviceV2_0::AllocateTensorBuffer(size_t length, std::shared_ptr<TensorDesc> tensor) in AllocateTensorBuffer()
433 void* HDIDeviceV2_0::AllocateTensorBuffer(size_t length, std::shared_ptr<NNTensor> tensor) in AllocateTensorBuffer()
575const std::map<std::string, std::vector<int8_t>>& extensions, in PrepareOfflineModel()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
Ddata_value.cpp190 DataValue &DataValue::operator=(const std::string &string) in operator =()
290 int DataValue::SetText(const uint8_t *val, uint32_t length) in SetText()

12345