mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-01-19 08:46:45 +01:00
Rebuild with string argument, like the constructor
More convenient
This commit is contained in:
parent
2aee6cd8c5
commit
9fa9fbfddf
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…
x
Reference in New Issue
Block a user