android_system_core/base
Stephen Hines b0775ca517 Switch to memcpy for accessing misaligned data.
Bug: http://b/31532493

Using misaligned pointers forces us to potentially take the address of
members in a packed structure (which is now a warning/error in the
latest Clang). Using memcpy() is the proper way to handle this kind of
problem, as the compiler can insert the proper instructions (and usually
elide the memcpy() entirely).

Test: Built correctly with updated compilers.
Change-Id: Ia1f6eb62cf19404ff76b71d3c6c7ffffa1403120
2016-12-07 03:46:55 -08:00
..
include/android-base Switch to memcpy for accessing misaligned data. 2016-12-07 03:46:55 -08:00
.clang-format Revert "Revert "Create libbase."" 2015-03-16 10:08:46 -07:00
Android.bp Enable libbase/libutils/libziparchive on host bionic 2016-11-29 13:38:53 -08:00
CPPLINT.cfg Don't show lint errors for rvalue references. 2015-04-02 18:38:01 -07:00
errors_test.cpp base: add SystemErrorCodeToString() function. 2016-02-01 12:18:26 -08:00
errors_unix.cpp base: add SystemErrorCodeToString() function. 2016-02-01 12:18:26 -08:00
errors_windows.cpp base: add SystemErrorCodeToString() function. 2016-02-01 12:18:26 -08:00
file.cpp base: add parameter that controls O_NOFOLLOW in file functions. 2016-09-14 17:08:22 -07:00
file_test.cpp base: add parameter that controls O_NOFOLLOW in file functions. 2016-09-14 17:08:22 -07:00
logging.cpp system/core: preparation to pull back interfaces from android/log.h 2016-10-20 08:11:39 -07:00
logging_test.cpp Move CapturedStderr to test_util library 2016-10-22 10:35:21 -07:00
parsedouble_test.cpp libbase: add parsedouble.h. 2016-10-19 11:19:42 -07:00
parseint_test.cpp Move off std::sto* function which abort on failure. 2016-10-13 15:34:05 -07:00
parsenetaddress.cpp base: add network address parsing function from adb. 2016-01-21 20:03:33 -08:00
parsenetaddress_test.cpp base: add network address parsing function from adb. 2016-01-21 20:03:33 -08:00
properties.cpp Move off std::sto* function which abort on failure. 2016-10-13 15:34:05 -07:00
properties_test.cpp Add std::string system property functions. 2016-09-23 15:30:22 -07:00
quick_exit.cpp Remove mutex.h and its uses. 2016-09-16 15:58:00 -07:00
quick_exit_test.cpp base: add quick_exit emulation. 2016-09-13 17:54:50 -07:00
stringprintf.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
stringprintf_test.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
strings.cpp Add StartsWithIgnoreCase/EndsWithIgnoreCase. 2016-10-25 14:56:04 -07:00
strings_test.cpp Add StartsWithIgnoreCase/EndsWithIgnoreCase. 2016-10-25 14:56:04 -07:00
test_main.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
test_utils.cpp Move CapturedStderr to test_util library 2016-10-22 10:35:21 -07:00
utf8.cpp Track rename of base/ to android-base/. 2015-12-04 22:00:26 -08:00
utf8_test.cpp Fix a couple sign-comparison warnings. 2016-01-15 12:18:14 -08:00