git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2549
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+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)
wxFileInputStream::~wxFileInputStream()
{
if (m_file_destroy)
+wxFileOutputStream::wxFileOutputStream(int fd)
+{
+ m_file = new wxFile(fd);
+ m_file_destroy = TRUE;
+ m_o_streambuf->SetBufferIO(1024);
+}
+
wxFileOutputStream::~wxFileOutputStream()
{
if (m_file_destroy) {
wxFileOutputStream::~wxFileOutputStream()
{
if (m_file_destroy) {