Rebuild with string argument, like the constructor

More convenient
This commit is contained in:
Teebonne
2022-10-10 20:08:02 +01:00
committed by GitHub
parent 2aee6cd8c5
commit 9fa9fbfddf

View File

@@ -538,6 +538,11 @@ class message_t
throw error_t();
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)
{