commit | fcdae7e0d22984bca7101baaf528ff7ca7e1a175 | [log] [tgz] |
---|---|---|
author | Daniel Cheng <dcheng@chromium.org> | Tue Jul 24 19:11:22 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jul 24 19:11:22 2018 |
tree | c999b341a3416797fe4fb641c8c1b3d242a421cb | |
parent | b75efb0827b79517362176d02fb22deafb69c5c6 [diff] |
Add type-safer helpers for accessing SharedMemoryMappings. - GetMemoryAs<T> should be used when the mapping contains one T. - GetMemoryAsSpan<T> should be used when the mapping contains more than one T. The element count can be explicitly specified or autodeduced from the size of the shared memory mapping. Bug: 795291, 866975 Change-Id: Icea4e276a26a1c47688c0a5206b97cd42ff92043 Reviewed-on: https://chromium-review.googlesource.com/1144312 Reviewed-by: danakj <danakj@chromium.org> Reviewed-by: Robert Sesek <rsesek@chromium.org> Reviewed-by: Alexandr Ilin <alexilin@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#577630}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .