/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/ |
H A D | generate_dat.py | 88 file_hash2bts = int('0').to_bytes(1, 'big') * 4 89 version2bts = int('1').to_bytes(1, 'big') 90 reserved2bts = int('0').to_bytes(1, 'big') * 5 96 meta_offset2bts = meta_offset.to_bytes(2, 'big') 97 locales_num2bts = locales_num.to_bytes(2, 'big') 98 string_pool_offset2bts = (meta_offset + meta_data_size * meta_num).to_bytes(2, 'big') 152 return mask.to_bytes(4, 'big') 175 locale_index2bts = locale_mask2bts + locale_meta_offset.to_bytes(2, 'big') + locale_meta_num.to_bytes(2, 'big') 183 meta2bts = resource_id.to_bytes( [all...] |
/base/telephony/core_service/utils/common/src/ |
H A D | str_convert.cpp | 29 return std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> {}.to_bytes(str16); in ToUtf8() 39 return std::wstring_convert<std::codecvt_utf8<char32_t>, char32_t> {}.to_bytes(str32); in ToUtf8() 44 return std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> {}.to_bytes(wstr); in ToUtf8()
|
/kernel/linux/linux-5.10/drivers/md/ |
H A D | dm-ebs-target.c | 70 unsigned int buf_off = to_bytes(__block_mod(iter->bi_sector, ec->u_bs)); in __ebs_rw_bvec() 275 to_bytes(tmp1) > PAGE_SIZE) { in ebs_ctr() 315 ec->bufio = dm_bufio_client_create(ec->dev->bdev, to_bytes(ec->u_bs), 1, 0, NULL, NULL); in ebs_ctr() 423 limits->logical_block_size = to_bytes(ec->e_bs); in ebs_io_hints() 424 limits->physical_block_size = to_bytes(ec->u_bs); in ebs_io_hints()
|
H A D | dm-stripe.c | 264 bio->bi_iter.bi_size = to_bytes(end - begin); in stripe_map_range()
|
H A D | dm-io.c | 376 len = min(len, to_bytes(remaining)); in do_region()
|
/kernel/linux/linux-6.6/drivers/md/ |
H A D | dm-ebs-target.c | 72 unsigned int buf_off = to_bytes(__block_mod(iter->bi_sector, ec->u_bs)); in __ebs_rw_bvec() 277 to_bytes(tmp1) > PAGE_SIZE) { in ebs_ctr() 317 ec->bufio = dm_bufio_client_create(ec->dev->bdev, to_bytes(ec->u_bs), 1, in ebs_ctr() 428 limits->logical_block_size = to_bytes(ec->e_bs); in ebs_io_hints() 429 limits->physical_block_size = to_bytes(ec->u_bs); in ebs_io_hints()
|
H A D | dm-io.c | 370 len = min(len, to_bytes(remaining)); in do_region()
|
H A D | dm-stripe.c | 262 bio->bi_iter.bi_size = to_bytes(end - begin); in stripe_map_range()
|
/base/hiviewdfx/hisysevent/interfaces/rust/innerkits/src/ |
H A D | utils.rs | 21 let name = name.to_bytes(); in trans_slice_to_array()
|
H A D | sys_event_manager.rs | 215 std::str::from_utf8(level_arr.to_bytes()).expect("need valid level pointer") in get_level() 224 let tag = std::str::from_utf8(tag_arr.to_bytes()).expect("need valid tag pointer") in get_tag() 234 let json_str = std::str::from_utf8(json_str_arr.to_bytes()).expect("need valid json str pointer") in get_json_str()
|
/base/telephony/state_registry/frameworks/cj/src/ |
H A D | telephony_observer_utils.cpp | 37 std::string result = convert.to_bytes(str16); in ToUtf8()
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/ |
H A D | data_publisher_sys_event_callback.cpp | 53 std::string str = convert.to_bytes(iter); in OnQuery()
|
/base/customization/enterprise_device_management/common/native/src/ |
H A D | edm_utils.cpp | 55 std::string result = convert.to_bytes(str16);
in Utf16ToUtf8()
|
/base/security/access_token/interfaces/innerkits/token_callback/src/ |
H A D | token_callback_stub.cpp | 35 return std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> {}.to_bytes(str16); in to_utf8()
|
/base/telephony/sms_mms/services/sms/ |
H A D | sms_dump_helper.cpp | 39 return std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> {}.to_bytes(str16); in to_utf8()
|
/base/telephony/core_service/services/core/src/ |
H A D | core_service_dump_helper.cpp | 55 return std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> {}.to_bytes(str16); in to_utf8()
|
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/ |
H A D | faultlogger_service_ohos.cpp | 68 return converter.to_bytes(arg); in Dump()
|
/base/hiviewdfx/hiview/base/utility/include/ |
H A D | string_util.h | 115 std::string result = converter.to_bytes(source); in ConvertToUTF8()
|
/base/location/services/location_gnss/gnss/source/ |
H A D | string_utils.cpp | 153 return converter.to_bytes(wStr); in WstringToString()
|
/base/telephony/call_manager/services/call_voice_assistant/src/ |
H A D | call_voice_assistant_manager.cpp | 362 TELEPHONY_LOGI("receiveData, %{public}s.", convert.to_bytes(_reply1).c_str());
in SendRequest() 363 UpdateReplyData(convert.to_bytes(_reply1));
in SendRequest()
|
/base/telephony/core_service/frameworks/cj/telephony_sim/src/ |
H A D | telephony_sim_impl.cpp | 113 std::string result = convert.to_bytes(str16); in ToUtf8()
|
/base/location/frameworks/location_common/common/source/ |
H A D | common_utils.cpp | 209 std::string result = convert.to_bytes(str); in Str16ToStr8()
|
/base/telephony/core_service/frameworks/cj/telephony_radio/src/ |
H A D | telephony_radio_impl.cpp | 173 std::string result = convert.to_bytes(str16); in ToUtf8()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | device-mapper.h | 635 static inline unsigned long to_bytes(sector_t n) in to_bytes() function
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | device-mapper.h | 716 static inline unsigned long to_bytes(sector_t n) in to_bytes() function
|