commit | 667a8cfc0ddf116401ed26ce40740c9aa18c2a80 | [log] [tgz] |
---|---|---|
author | Yurii Zubrytskyi <zyy@google.com> | Fri Aug 09 15:22:55 2019 -0700 |
committer | Yurii Zubrytskyi <zyy@google.com> | Wed Aug 14 10:04:32 2019 -0700 |
tree | 2aa06a494aa149e5d28a72fe62098eec4531055c | |
parent | cfa5ff31944bf6ff8aff9ec0c95c7abc79e4eab2 [diff] |
[base] Make MappedFile work with OS file handles adb uses its own implementation of Windows HANDLE->int mapping, and it doesn't play well with _get_osfhandle() function used in MappedFile::FromFd(). This CL adds another function that accepts raw handle, so adb can pass it directly + make constant functions 'const' + make the MappedFile movable, as nothing prevents it from being one Test: libbase_test Change-Id: Ifde4a4094b910e9c7b431126ecf3fef5aa3bb4a6