mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-13 14:45:38 +02:00
msgpack::sbuffer::data() const
This commit is contained in:
@@ -62,6 +62,12 @@ public:
|
|||||||
return sbuf->data;
|
return sbuf->data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* data() const
|
||||||
|
{
|
||||||
|
const msgpack_sbuffer* sbuf = static_cast<const msgpack_sbuffer*>(this);
|
||||||
|
return sbuf->data;
|
||||||
|
}
|
||||||
|
|
||||||
size_t size() const
|
size_t size() const
|
||||||
{
|
{
|
||||||
const msgpack_sbuffer* sbuf = static_cast<const msgpack_sbuffer*>(this);
|
const msgpack_sbuffer* sbuf = static_cast<const msgpack_sbuffer*>(this);
|
||||||
|
Reference in New Issue
Block a user