- if (m_iolimit == 2)
- return 0;
-
- switch (mode) {
- case wxFromStart:
- if ((size_t)pos > m_length)
- return m_position_i;
- return (m_position_i = pos);
-
- case wxFromCurrent:
- if ((size_t)(m_position_i+pos) > m_length)
- return m_position_i;
-
- return (m_position_i += pos);
-
- case wxFromEnd:
- if ((size_t)(m_length-pos) > m_length)
- return m_position_i;
-
- return (m_position_i = m_length-pos);
- }
-
- return m_position_i;