15 typedef std::vector<char> byte_buffer_type;
18 std::shared_ptr<byte_buffer_type> m_bytes;
22 explicit RawValue(
size_t num_bytes);
23 explicit RawValue(
const std::string& s);
24 RawValue(
const char *
const begin,
const char *
const end);
26 std::shared_ptr<byte_buffer_type> bytes();
28 void set_bytes(std::shared_ptr<byte_buffer_type> bytes);
30 void resize(
size_t num_bytes);
34 const char* data()
const;
36 std::string str()
const;
38 byte_buffer_type::iterator begin();
39 byte_buffer_type::const_iterator begin()
const;
41 byte_buffer_type::iterator end();
42 byte_buffer_type::const_iterator end()
const;
The base class for exceptions that are raised by the vega library.
Definition: vega.h:11