google / nearby

🐿️ A collection of projects focused on connectivity that enable building cross-device experiences.
https://developers.google.com/nearby
Apache License 2.0
754 stars 155 forks source link

Add begin()/end() to ByteArray. #2973

Closed copybara-service[bot] closed 1 week ago

copybara-service[bot] commented 2 weeks ago

Add begin()/end() to ByteArray.

This allows this type to meet the requirements of e.g. std::ranges::range, which is necessary for it to work with the std::span range constructor, or the "non-legacy" constructor for Chromium's base::span.

Fixes a number of IWYU problems along the way, to silence checks.

Bug: chromium:364987728