Home
last modified time | relevance | path

Searched refs:to_bytes (Results 1 - 25 of 39) sorted by relevance

12

/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/
H A Dgenerate_dat.py88 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 Dstr_convert.cpp29 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 Ddm-ebs-target.c70 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 Ddm-stripe.c264 bio->bi_iter.bi_size = to_bytes(end - begin); in stripe_map_range()
H A Ddm-io.c376 len = min(len, to_bytes(remaining)); in do_region()
/kernel/linux/linux-6.6/drivers/md/
H A Ddm-ebs-target.c72 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 Ddm-io.c370 len = min(len, to_bytes(remaining)); in do_region()
H A Ddm-stripe.c262 bio->bi_iter.bi_size = to_bytes(end - begin); in stripe_map_range()
/base/hiviewdfx/hisysevent/interfaces/rust/innerkits/src/
H A Dutils.rs21 let name = name.to_bytes(); in trans_slice_to_array()
H A Dsys_event_manager.rs215 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 Dtelephony_observer_utils.cpp37 std::string result = convert.to_bytes(str16); in ToUtf8()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
H A Ddata_publisher_sys_event_callback.cpp53 std::string str = convert.to_bytes(iter); in OnQuery()
/base/customization/enterprise_device_management/common/native/src/
H A Dedm_utils.cpp55 std::string result = convert.to_bytes(str16); in Utf16ToUtf8()
/base/security/access_token/interfaces/innerkits/token_callback/src/
H A Dtoken_callback_stub.cpp35 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 Dsms_dump_helper.cpp39 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 Dcore_service_dump_helper.cpp55 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 Dfaultlogger_service_ohos.cpp68 return converter.to_bytes(arg); in Dump()
/base/hiviewdfx/hiview/base/utility/include/
H A Dstring_util.h115 std::string result = converter.to_bytes(source); in ConvertToUTF8()
/base/location/services/location_gnss/gnss/source/
H A Dstring_utils.cpp153 return converter.to_bytes(wStr); in WstringToString()
/base/telephony/call_manager/services/call_voice_assistant/src/
H A Dcall_voice_assistant_manager.cpp362 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 Dtelephony_sim_impl.cpp113 std::string result = convert.to_bytes(str16); in ToUtf8()
/base/location/frameworks/location_common/common/source/
H A Dcommon_utils.cpp209 std::string result = convert.to_bytes(str); in Str16ToStr8()
/base/telephony/core_service/frameworks/cj/telephony_radio/src/
H A Dtelephony_radio_impl.cpp173 std::string result = convert.to_bytes(str16); in ToUtf8()
/kernel/linux/linux-5.10/include/linux/
H A Ddevice-mapper.h635 static inline unsigned long to_bytes(sector_t n) in to_bytes() function
/kernel/linux/linux-6.6/include/linux/
H A Ddevice-mapper.h716 static inline unsigned long to_bytes(sector_t n) in to_bytes() function

Completed in 28 milliseconds

12