| Index: webrtc/base/buffer.h
|
| diff --git a/webrtc/base/buffer.h b/webrtc/base/buffer.h
|
| index 0ef1e3b5c8a70a99068cbcf2ce32ac5e5da8d06f..6fe91854464e5055d703117d7645bc7f804841f7 100644
|
| --- a/webrtc/base/buffer.h
|
| +++ b/webrtc/base/buffer.h
|
| @@ -124,6 +124,16 @@ class Buffer {
|
|
|
| bool operator!=(const Buffer& buf) const { return !(*this == buf); }
|
|
|
| + uint8_t& operator[](size_t index) {
|
| + RTC_DCHECK_LT(index, size_);
|
| + return data()[index];
|
| + }
|
| +
|
| + uint8_t operator[](size_t index) const {
|
| + RTC_DCHECK_LT(index, size_);
|
| + return data()[index];
|
| + }
|
| +
|
| // The SetData functions replace the contents of the buffer. They accept the
|
| // same input types as the constructors.
|
| template <typename T, typename internal::ByteType<T>::t = 0>
|
|
|