- if (m_iolimit == 2)
- return 0;
-
- switch (whence) {
- case wxBeginPosition:
- if ((size_t)pos > m_length)
- return m_position_i;
- return (m_position_i = pos);
-
- case wxCurrentPosition:
- if ((size_t)(m_position_i+pos) > m_length)
- return m_position_i;
-
- return (m_position_i += pos);
-
- case wxEndPosition:
- if ((size_t)(m_length-pos) > m_length)
- return m_position_i;
-
- return (m_position_i = m_length-pos);
- }
-
- return m_position_i;