src/PelDataWindow.php
public function getSLong($offset = 0)
    {
        /*
         * Validate the offset+3 to see if we can safely get four bytes
         * --- this throws an exception if offset is out of range.
         */
        $this->validateOffset($offset);
        $this->validateOffset($offset + 3);

        /* Translate the offset into an offset into the data. */
        $offset += $this->start;

        /* Return a signed long. */
        return PelConvert::bytesToSLong($this->data, $offset, $this->order);
    }
public function getSLong($offset = 0)
    {
        /*
         * Validate the offset+3 to see if we can safely get four bytes
         * --- this throws an exception if offset is out of range.
         */
        $this->validateOffset($offset);
        $this->validateOffset($offset + 3);

        /* Translate the offset into an offset into the data. */
        $offset += $this->start;

        /* Return a signed long. */
        return PelConvert::bytesToSLong($this->data, $offset, $this->order);
    }
public function getSLong ( $ offset = 0 ) { /*
         * Validate the offset+3 to see if we can safely get four bytes
         * --- this throws an exception if offset is out of range.
         */ $ this -> validateOffset ( $ offset ) ; $ this -> validateOffset ( $ offset + 3 ) ; /* Translate the offset into an offset into the data. */ $ offset += $ this -> start ; /* Return a signed long. */ return PelConvert :: bytesToSLong ( $ this -> data , $ offset , $ this -> order ) ; }
Return a signed long read from the data.

@param integer $offset
the offset into the data. An offset of zero will
return the first long available in the current allowed window.
The last valid offset is equal to {@link getSize()}-4. Invalid
offsets will result in a {@link PelDataWindowOffsetException}
being thrown.

@return integer the signed long found at offset.
@throws PelDataWindowOffsetException
Return a signed long read from the data .