commit | d6fa4f24eae85b97c13728b846c430a8464839ee | [log] [tgz] |
---|---|---|
author | Alex Light <allight@google.com> | Wed Sep 11 14:45:31 2019 -0700 |
committer | Treehugger Robot <treehugger-gerrit@google.com> | Thu Sep 12 17:29:44 2019 +0000 |
tree | 0e392007f44abbedba3aa8452c74fe5391dc9260 | |
parent | 4fb71cc45b056b862680e2fecff55f855bd57795 [diff] |
Add some helper functions/constructors to ArraySlice The ArraySlice has some nice functions for dealing with arrays. Add helper constructors to make an ArraySlice out of the commonly used LengthPrefixedArray and their pointers. Also add some convenience things such as getting the offset of an element and tightening the Contains check to ensure that the input is properly aligned. Test: ./test.py --host Bug: 140891089 Change-Id: If8350c5716db943d86cae32ed7b17aa8f036c978