summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf/fapi2/include/variable_buffer.H
diff options
context:
space:
mode:
authorBrian Silver <bsilver@us.ibm.com>2015-04-01 13:40:48 -0500
committerPatrick Williams <iawillia@us.ibm.com>2015-12-11 13:40:20 -0600
commit550801e4e6120de1b2f2b0b41f9389074deda85e (patch)
treee7f3d00c48da73920aaf6058cffa768982fceed5 /src/import/hwpf/fapi2/include/variable_buffer.H
parentb7f264ad18b352246d58892929a1c38b2fce015c (diff)
downloadtalos-hostboot-550801e4e6120de1b2f2b0b41f9389074deda85e.tar.gz
talos-hostboot-550801e4e6120de1b2f2b0b41f9389074deda85e.zip
Add variable_buffer::pointer()
Change-Id: I4018509b00898c6ce9706c62d2d956a1019126aa Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16819 Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Tested-by: Brian Silver <bsilver@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/include/variable_buffer.H')
-rw-r--r--src/import/hwpf/fapi2/include/variable_buffer.H6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/import/hwpf/fapi2/include/variable_buffer.H b/src/import/hwpf/fapi2/include/variable_buffer.H
index 38c7a4a5c..f25f2b4d3 100644
--- a/src/import/hwpf/fapi2/include/variable_buffer.H
+++ b/src/import/hwpf/fapi2/include/variable_buffer.H
@@ -492,6 +492,12 @@ namespace fapi2
#endif
///
+ /// @brief Get a pointer to the buffer bits
+ /// @return Pointer to the buffer itself
+ ///
+ inline unit_type* pointer(void) { return &(iv_data[0]); }
+
+ ///
/// @brief operator!=()
///
bool operator!=(const variable_buffer& rhs) const
OpenPOWER on IntegriCloud