]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wfstream.cpp
old makefiles removed
[wxWidgets.git] / src / common / wfstream.cpp
index 4d798f3c7913893d4a0fe36ef3f03ab0279a8abb..885bab4cf975ac8c1fdac0d6e06861e847e290d6 100644 (file)
@@ -42,6 +42,20 @@ wxFileInputStream::wxFileInputStream()
   m_file = NULL;
 }
 
+wxFileInputStream::wxFileInputStream(wxFile& file)
+{
+  m_file = &file;
+  m_file_destroy = FALSE;
+  m_i_streambuf->SetBufferIO(1024);
+}
+
+wxFileInputStream::wxFileInputStream(int fd)
+{
+  m_file = new wxFile(fd);
+  m_file_destroy = TRUE;
+  m_i_streambuf->SetBufferIO(1024);
+}
+
 wxFileInputStream::~wxFileInputStream()
 {
   if (m_file_destroy)
@@ -99,6 +113,13 @@ wxFileOutputStream::wxFileOutputStream()
   m_file = NULL;
 }
 
+wxFileOutputStream::wxFileOutputStream(int fd)
+{
+  m_file = new wxFile(fd);
+  m_file_destroy = TRUE;
+  m_o_streambuf->SetBufferIO(1024);
+}
+
 wxFileOutputStream::~wxFileOutputStream()
 {
   if (m_file_destroy) {