wxFileOffset wxInputStream::TellI() const { wxFileOffset pos = OnSysTell(); if (pos != wxInvalidOffset) pos -= (m_wbacksize - m_wbackcur); return pos; }
wxFileOffset OnSysSeek(wxFileOffset off, wxSeekMode mode) { wxPyThreadBlocker blocker; PyObject* arglist = PyTuple_New(2); if (sizeof(wxFileOffset) > sizeof(long)) // wxFileOffset is a 64-bit value... PyTuple_SET_ITEM(arglist, 0, PyLong_FromLongLong(off)); else PyTuple_SET_ITEM(arglist, 0, wxPyInt_FromLong(off)); PyTuple_SET_ITEM(arglist, 1, wxPyInt_FromLong(mode)); PyObject* result = PyEval_CallObject(m_seek, arglist); Py_DECREF(arglist); Py_XDECREF(result); return OnSysTell(); }
wxFileOffset wxOutputStream::TellO() const { return OnSysTell(); }