#if wxUSE_BACKINGFILE
+#include "wx/stream.h"
+
// ----------------------------------------------------------------------------
// Backs an input stream with memory or a file to make it seekable.
//
public:
wxBackedInputStream(const wxBackingFile& backer);
+ // If the length of the backer's parent stream is unknown then GetLength()
+ // returns wxInvalidOffset until the parent has been read to the end.
wxFileOffset GetLength() const;
+
+ // Returns the length, reading the parent stream to the end if necessary.
+ wxFileOffset FindLength() const;
+
bool IsSeekable() const { return true; }
protected: