summaryrefslogtreecommitdiff
path: root/cpp/sbuffer.hpp
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@users.sourceforge.jp>2009-03-01 01:06:16 +0900
committerfrsyuki <frsyuki@users.sourceforge.jp>2009-03-01 01:06:16 +0900
commit17c2fa5a4ed436e9b9c5b6d186eea40875b68345 (patch)
treee3550cd68d3394e04e5da898582a2823e47c5c43 /cpp/sbuffer.hpp
parent76f18a0ea679af7f964ec455d93acc9b2c25b942 (diff)
downloadmsgpack-python-17c2fa5a4ed436e9b9c5b6d186eea40875b68345.tar.gz
msgpack::sbuffer::data() const
Diffstat (limited to 'cpp/sbuffer.hpp')
-rw-r--r--cpp/sbuffer.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/sbuffer.hpp b/cpp/sbuffer.hpp
index 37ede49..2651b58 100644
--- a/cpp/sbuffer.hpp
+++ b/cpp/sbuffer.hpp
@@ -62,6 +62,12 @@ public:
return sbuf->data;
}
+ const char* data() const
+ {
+ const msgpack_sbuffer* sbuf = static_cast<const msgpack_sbuffer*>(this);
+ return sbuf->data;
+ }
+
size_t size() const
{
const msgpack_sbuffer* sbuf = static_cast<const msgpack_sbuffer*>(this);