C
Christopher
I am not sure how to get to the underlying string data in these
objects:
struct Buffer
{
boost::shared_array<char> value_;
unsigned int used_;
mutable bool sealed_;
};
struct BufferWrapper
{
boost::shared_ptr<Buffer> buffer;
// What is this and how to use it?
operator boost::asio::const_buffer() const;
{
return boost::asio::buffer(buffer->value_.get(), buffer->used_ *
sizeof(char));
}
};
I am used to seeing <return type> operator <some operator> (paramters)
{ <body> }
How can I get to the string data?
objects:
struct Buffer
{
boost::shared_array<char> value_;
unsigned int used_;
mutable bool sealed_;
};
struct BufferWrapper
{
boost::shared_ptr<Buffer> buffer;
// What is this and how to use it?
operator boost::asio::const_buffer() const;
{
return boost::asio::buffer(buffer->value_.get(), buffer->used_ *
sizeof(char));
}
};
I am used to seeing <return type> operator <some operator> (paramters)
{ <body> }
How can I get to the string data?