MCPcopy Create free account
hub / github.com/alanxz/SimpleAmqpClient / StringToBytes

Function StringToBytes

src/Channel.cpp:67–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65namespace {
66
67amqp_bytes_t StringToBytes(const std::string &str) {
68 amqp_bytes_t ret;
69 ret.bytes = reinterpret_cast<void *>(const_cast<char *>(str.data()));
70 ret.len = str.length();
71 return ret;
72}
73
74amqp_basic_properties_t CreateAmqpProperties(const BasicMessage &mes,
75 Detail::amqp_pool_ptr_t &pool) {

Callers 2

CreateAmqpPropertiesFunction · 0.85
BasicPublishMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected