src/PelDataWindow.php
private function validateOffset($offset)
    {
        if ($offset < 0 || $offset >= $this->size) {
            throw new PelDataWindowOffsetException('Offset %d not within [%d, %d]', $offset, 0, $this->size - 1);
        }
    }
private function validateOffset($offset)
    {
        if ($offset < 0 || $offset >= $this->size) {
            throw new PelDataWindowOffsetException('Offset %d not within [%d, %d]', $offset, 0, $this->size - 1);
        }
    }
private function validateOffset ( $ offset ) { if ( $ offset < 0 || $ offset >= $ this -> size ) { throw new PelDataWindowOffsetException ( 'Offset %d not within [%d, %d]' , $ offset , 0 , $ this -> size - 1 ) ; } }
Validate an offset against the current window.

@param integer $offset
the offset to be validated. If the offset is negative
or if it is greater than or equal to the current window size,
then a {@link PelDataWindowOffsetException} is thrown.

@return void if the offset is valid nothing is returned, if it is
invalid a new {@link PelDataWindowOffsetException} is thrown.
@throws PelDataWindowOffsetException
Validate an offset against the current window .