android_system_core/base/include/android-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
..
errors.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
file.h base: add parameter that controls O_NOFOLLOW in file functions. 2016-09-14 17:08:22 -07:00
logging.h Base: Remove LOG_S variants. 2016-09-24 10:18:38 -07:00
macros.h Base: assume and use C++11 in libbase 2016-09-01 13:38:12 -07:00
memory.h Switch to memcpy for accessing misaligned data. 2016-12-07 03:46:55 -08:00
parsedouble.h libbase: add parsedouble.h. 2016-10-19 11:19:42 -07:00
parseint.h Move off std::sto* function which abort on failure. 2016-10-13 15:34:05 -07:00
parsenetaddress.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
properties.h Add std::string system property functions. 2016-09-23 15:30:22 -07:00
quick_exit.h base: add quick_exit emulation. 2016-09-13 17:54:50 -07:00
stringprintf.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00
strings.h Add StartsWithIgnoreCase/EndsWithIgnoreCase. 2016-10-25 14:56:04 -07:00
test_utils.h Move CapturedStderr to test_util library 2016-10-22 10:35:21 -07:00
thread_annotations.h Base: add more thread annotations 2016-08-31 13:29:07 -07:00
unique_fd.h base: rename unique_fd::clear() to unique_fd::reset(). 2016-09-19 11:24:58 -07:00
utf8.h Fix <android-base/*.h> header guards. 2016-03-23 15:04:52 -07:00