title: How do i make a some sort of istream for a vector of unsigned chars
body: <p>how can i create an istream from a buffer unsigned char* or vector.</p>
  
  <p>basically i want :</p>
  
  <pre><code>void Func(vector&lt;unsigned char&gt; data)
  {
    someSortOfIstream x (data);
  
    x &gt;&gt; something;
  }
  </code></pre>
  
  <p>using boost too....</p>