getid3_handler::fseek

Advertisement

Syntax Syntax

getid3_handler::fseek( int $bytes, int $whence = SEEK_SET )

Parameters Parameters

$bytes

(int) (Required)

$whence

(int) (Optional)

Default value: SEEK_SET

Return Return

(int)

Source Source

File: wp-includes/ID3/getid3.php

	/**
	 * @param string $string
	 */
	public function setStringMode($string) {
		$this->data_string_flag   = true;
		$this->data_string        = $string;
		$this->data_string_length = strlen($string);
	}

	/**
	 * @return int|bool
	 */
	protected function ftell() {
		if ($this->data_string_flag) {
			return $this->data_string_position;
		}
		return ftell($this->getid3->fp);
	}

	/**
	 * @param int $bytes
	 *
	 * @return string|false
	 *
	 * @throws getid3_exception
	 */
	protected function fread($bytes) {
		if ($this->data_string_flag) {

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.