POMO_FileReader::seekto() WordPress Method
The POMO_FileReader::seekto() method is used to move the file pointer to a specific position in the file. The position is specified in number of bytes from the beginning of the file. This method can be used to rewind the file pointer to the beginning of the file or to move it to the end of the file.
POMO_FileReader::seekto( int $pos ) #
Contents
Parameters
- $pos
(int)(Required)
Return
(bool)
Source
File: wp-includes/pomo/streams.php
public function seekto( $pos ) { if ( -1 == fseek( $this->_f, $pos, SEEK_SET ) ) { return false; } $this->_pos = $pos; return true; }
Expand full source codeCollapse full source codeView on TracView on GitHub