]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mstream.cpp
Whole lot of stuff for new wxFileDialog
[wxWidgets.git] / src / common / mstream.cpp
index 4555d350620e77356e03dc02ec3edb51ecf61465..8e81abd394773fa7df8e8db6c2f01e2bb9153b37 100644 (file)
@@ -99,5 +99,16 @@ off_t wxMemoryOutputStream::OnSysTell() const
   return m_o_streambuf->Tell();
 }
 
+size_t wxMemoryOutputStream::CopyTo(char *buffer, size_t len) const
+{
+  if (!buffer)
+    return 0;
+
+  if (len > GetSize())
+    len = GetSize();
+
+  memcpy(buffer, m_o_streambuf->GetBufferStart(), len);
+  return len;
+}
 
 #endif