Searched refs:to_bytes (Results 1 – 9 of 9) sorted by relevance
| /freebsd/contrib/atf/atf-c++/detail/ |
| H A D | text_test.cpp | 309 ATF_TEST_CASE(to_bytes); 310 ATF_TEST_CASE_HEAD(to_bytes) in ATF_TEST_CASE_HEAD() argument 314 ATF_TEST_CASE_BODY(to_bytes) in ATF_TEST_CASE_BODY() argument 316 using atf::text::to_bytes; in ATF_TEST_CASE_BODY() 318 ATF_REQUIRE_EQ(0, to_bytes("0")); in ATF_TEST_CASE_BODY() 319 ATF_REQUIRE_EQ(12345, to_bytes("12345")); in ATF_TEST_CASE_BODY() 320 ATF_REQUIRE_EQ(2 * 1024, to_bytes("2k")); in ATF_TEST_CASE_BODY() 321 ATF_REQUIRE_EQ(4 * 1024 * 1024, to_bytes("4m")); in ATF_TEST_CASE_BODY() 322 ATF_REQUIRE_EQ(int64_t(8) * 1024 * 1024 * 1024, to_bytes("8g")); in ATF_TEST_CASE_BODY() 323 ATF_REQUIRE_EQ(int64_t(16) * 1024 * 1024 * 1024 * 1024, to_bytes("16t")); in ATF_TEST_CASE_BODY() [all …]
|
| H A D | text.hpp | 103 int64_t to_bytes(std::string);
|
| H A D | text.cpp | 134 impl::to_bytes(std::string str) in to_bytes() function in impl
|
| /freebsd/contrib/llvm-project/libcxx/include/__locale_dir/ |
| H A D | wstring_convert.h | 76 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(_Elem __wchar) { in to_bytes() function 77 return to_bytes(std::addressof(__wchar), std::addressof(__wchar) + 1); in to_bytes() 79 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const _Elem* __wptr) { in to_bytes() function 80 return to_bytes(__wptr, __wptr + char_traits<_Elem>::length(__wptr)); in to_bytes() 82 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const wide_string& __wstr) { in to_bytes() function 83 return to_bytes(__wstr.data(), __wstr.data() + __wstr.size()); in to_bytes() 85 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const _Elem* __first, const _Elem* __last); 179 wstring_convert<_Codecvt, _Elem, _WideAlloc, _ByteAlloc>::to_bytes(const _Elem* __frm, const _Elem*… in to_bytes() function
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | locale | 112 byte_string to_bytes(Elem wchar); 113 byte_string to_bytes(const Elem* wptr); 114 byte_string to_bytes(const wide_string& wstr); 115 byte_string to_bytes(const Elem* first, const Elem* last);
|
| /freebsd/crypto/openssl/test/cms-msg/ |
| H A D | make_missing_kdf_der.py | 85 end = start + len(node.hdr_len.to_bytes(1, "big")) - 1 # unused, kept for clarity
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/include/ |
| H A D | math.shlib | 69 function to_bytes
|
| H A D | libtest.shlib | 3054 typeset file_bytes=$(to_bytes $megs)
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/ |
| H A D | locale | 112 byte_string to_bytes(Elem wchar); 113 byte_string to_bytes(const Elem* wptr); 114 byte_string to_bytes(const wide_string& wstr); 115 byte_string to_bytes(const Elem* first, const Elem* last); 3176 …_LIBCPP_HIDE_FROM_ABI byte_string to_bytes(_Elem __wchar) { return to_bytes(&__wchar, &__wchar + 1… 3177 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const _Elem* __wptr) { 3178 return to_bytes(__wptr, __wptr + char_traits<_Elem>::length(__wptr)); 3180 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const wide_string& __wstr) { 3181 return to_bytes(__wstr.data(), __wstr.data() + __wstr.size()); 3183 _LIBCPP_HIDE_FROM_ABI byte_string to_bytes(const _Elem* __first, const _Elem* __last); [all …]
|