code/filesystem/stream/iterator/chunked.php
public function seek($position)
    {
        if ($position > $this->count()) {
            throw new \OutOfBoundsException('Invalid seek position ('.$position.')');
        }

        $chunk_size = $this->getChunkSize();
        $position   = $chunk_size * $position;

        $this->getInnerIterator()->seek($position);
    }
public function seek($position)
    {
        if ($position > $this->count()) {
            throw new \OutOfBoundsException('Invalid seek position ('.$position.')');
        }

        $chunk_size = $this->getChunkSize();
        $position   = $chunk_size * $position;

        $this->getInnerIterator()->seek($position);
    }
public function seek ( $ position ) { if ( $ position > $ this -> count ( ) ) { throw new \ OutOfBoundsException ( 'Invalid seek position (' . $ position . ')' ) ; } $ chunk_size = $ this -> getChunkSize ( ) ; $ position = $ chunk_size * $ position ; $ this -> getInnerIterator ( ) -> seek ( $ position ) ; }
Seeks to a given chunk position in the stream

@param int $position
@throws \OutOfBoundsException If the position is not seekable.
@return void
Seeks to a given chunk position in the stream