Added ::IsOk() to wxDataStream for error checking in
stream classes used by wxDataStream. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,6 +26,8 @@ public:
|
|||||||
wxDataInputStream(wxInputStream& s);
|
wxDataInputStream(wxInputStream& s);
|
||||||
~wxDataInputStream();
|
~wxDataInputStream();
|
||||||
|
|
||||||
|
bool IsOk() { return m_input->IsOk(); }
|
||||||
|
|
||||||
wxUint32 Read32();
|
wxUint32 Read32();
|
||||||
wxUint16 Read16();
|
wxUint16 Read16();
|
||||||
wxUint8 Read8();
|
wxUint8 Read8();
|
||||||
@@ -55,6 +57,8 @@ public:
|
|||||||
wxDataOutputStream(wxOutputStream& s);
|
wxDataOutputStream(wxOutputStream& s);
|
||||||
~wxDataOutputStream();
|
~wxDataOutputStream();
|
||||||
|
|
||||||
|
bool IsOk() { return m_output->IsOk(); }
|
||||||
|
|
||||||
void Write32(wxUint32 i);
|
void Write32(wxUint32 i);
|
||||||
void Write16(wxUint16 i);
|
void Write16(wxUint16 i);
|
||||||
void Write8(wxUint8 i);
|
void Write8(wxUint8 i);
|
||||||
|
Reference in New Issue
Block a user