[roll] Roll fuchsia [bt][common] Add const operator[] overload to MutableByteBuffer

The ByteBuffer class hierarchy is structured s.t. (Dynamic|Static)Byte-
Buffer inherits from MutableByteBuffer which inherits from ByteBuffer.
ByteBuffer is meant to expose a const interface, while MutableBB is an
extension to "provide methods that allow direct mutable access". This
causes problems when there are const and non-const overloads of the same
method or operator, as is the case for operator[]. C++ does not resolve
overloads from derived classes to base classes. Even a const
(Dynamic|Static)ByteBuffer is a MutableByteBuffer, and operator[] was
only defined as a non-const operation on MutableBB. As such, copy the
const operator[] from ByteBuffer to MutableByteBuffer so const (Static|
Dynamic)ByteBuffers can use it.

Original-Bug: 1338
Test: Added operator[] invocations for const Dynamic and Static BBs to
      `fx test bt-host-common-test`.
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/643247
Original-Revision: 5d957e3f08822fa4192c385f0b54ff5c50aa6cfe
GitOrigin-RevId: d92b6f5f42fd86af1ddaf53ab6b08707c96c7f8f
Change-Id: Ie7d241b07da0a0c18c1dad496c4ada655387e708
1 file changed
tree: 7606ef79303caa335b328aa86fa13bdeee01ec58
  1. infra/
  2. third_party/
  3. cts
  4. firmware
  5. flower
  6. jiri.lock
  7. minimal
  8. prebuilts
  9. README.md
  10. stem
  11. test_durations
  12. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance via the IRC channel #fuchsia on Freenode.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.