public function setOffset($offset)
    {
        if ($offset > $this->bufferLength || $offset < 0) {
            throw new \OutOfRangeException(
                \sprintf('Offset (%s) out of range (length: %s)', $offset, $this->bufferLength)
            );
        }

        $this->offset = (int) $offset;
    }
public function setOffset($offset)
    {
        if ($offset > $this->bufferLength || $offset < 0) {
            throw new \OutOfRangeException(
                \sprintf('Offset (%s) out of range (length: %s)', $offset, $this->bufferLength)
            );
        }

        $this->offset = (int) $offset;
    }
public function setOffset ( $ offset ) { if ( $ offset > $ this -> bufferLength || $ offset < 0 ) { throw new \ OutOfRangeException ( \ sprintf ( 'Offset (%s) out of range (length: %s)' , $ offset , $ this -> bufferLength ) ) ; } $ this -> offset = ( int ) $ offset ; }
Set the offset position in the current buffer.

@param int $offset
Set the offset position in the current buffer .