diff options
| author | frsyuki <frsyuki@users.sourceforge.jp> | 2009-03-01 01:06:16 +0900 |
|---|---|---|
| committer | frsyuki <frsyuki@users.sourceforge.jp> | 2009-03-01 01:06:16 +0900 |
| commit | 17c2fa5a4ed436e9b9c5b6d186eea40875b68345 (patch) | |
| tree | e3550cd68d3394e04e5da898582a2823e47c5c43 /cpp | |
| parent | 76f18a0ea679af7f964ec455d93acc9b2c25b942 (diff) | |
| download | msgpack-python-17c2fa5a4ed436e9b9c5b6d186eea40875b68345.tar.gz | |
msgpack::sbuffer::data() const
Diffstat (limited to 'cpp')
| -rw-r--r-- | cpp/sbuffer.hpp | 6 |
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); |
