From 231b99714fe1d873f679db4610fefed4f31c05c4 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 31 Jul 2013 13:58:23 +0000 Subject: [PATCH] base: add Array::Data() method to access the underlying buffer. --- src/lol/base/array.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lol/base/array.h b/src/lol/base/array.h index 9fd90427..b04944bd 100644 --- a/src/lol/base/array.h +++ b/src/lol/base/array.h @@ -136,6 +136,16 @@ public: return m_data[m_count - 1]; } + inline Element *Data() + { + return m_data; + } + + inline Element const *Data() const + { + return m_data; + } + inline Element const& Last() const { ASSERT(m_count > 0);