X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/593d4b0dffa77c74444dca03eb1e01c7b5f8a220..29f7914424a7941e9374a5445f95574f2f041659:/src/common/wfstream.cpp?ds=sidebyside diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index 4d798f3c79..885bab4cf9 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -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) {