title: Direct boost serialization to char array
body: <p>Boost serialization doc's assert that the way to serialize/deserialize items is using a binary/text archive with a stream on the underlying structure. This works fine if I wan't to use the serialized data as an std::string, but my intention is to convert it directly to a char* buffer. How can I achieve this without creating a temporary string? </p>
  
  <p>Solved! For the ones that wanted a example:</p>
  
  <pre><code>char buffer[4096];
  
  boost::iostreams::basic_array_sink&lt;char&gt; sr(buffer, buffer_size);  
  boost::iostreams::stream&lt; boost::iostreams::basic_array_sink&lt;char&gt; &gt; source(sr);
  
  boost::archive::binary_oarchive oa(source);
  
  oa &lt;&lt; serializable_object; 
  </code></pre>