mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-13 10:52:57 +01:00
Merge pull request #579 from Teebonne/patch-1
Rebuild with string argument, like the constructor
This commit is contained in:
commit
d96155cbc3
5
zmq.hpp
5
zmq.hpp
@ -538,6 +538,11 @@ class message_t
|
|||||||
throw error_t();
|
throw error_t();
|
||||||
memcpy(data(), data_, size_);
|
memcpy(data(), data_, size_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void rebuild(const std::string &str)
|
||||||
|
{
|
||||||
|
rebuild(str.data(), str.size());
|
||||||
|
}
|
||||||
|
|
||||||
void rebuild(void *data_, size_t size_, free_fn *ffn_, void *hint_ = ZMQ_NULLPTR)
|
void rebuild(void *data_, size_t size_, free_fn *ffn_, void *hint_ = ZMQ_NULLPTR)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user