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 ) #


Parameters

$pos

(int)(Required)


Top ↑

Return

(bool)


Top ↑

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;
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.