commit | c6275e40c163720111c12bdc388ef6ca8cc4bff5 | [log] [tgz] |
---|---|---|
author | Alexey Polyudov <apolyudov@google.com> | Wed Oct 19 15:22:52 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Oct 19 15:22:52 2016 +0000 |
tree | cd86cb56fb803f0f97f66b3a71df34c48a33c3d4 | |
parent | 65d12b85dfa8cabb06aa91b70f08b62c7c24fbc8 [diff] | |
parent | 6f0c9a168ea05c0a2ee7efb24fa790e2f216211c [diff] |
hidl_vec: add data() method am: 6f0c9a168e Change-Id: I4118f61077b7801d361ed2f0b7bcac97b642677a
diff --git a/include/hidl/HidlSupport.h b/include/hidl/HidlSupport.h index c9e007a..16f460f 100644 --- a/include/hidl/HidlSupport.h +++ b/include/hidl/HidlSupport.h
@@ -105,6 +105,14 @@ mOwnsBuffer = false; } + T *data() { + return mBuffer; + } + + const T *data() const { + return mBuffer; + } + hidl_vec &operator=(hidl_vec &&other) { mBuffer = other.mBuffer; mSize = other.mSize;