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

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

        /* Return an unsigned short. */
        return PelConvert::bytesToShort($this->data, $offset, $this->order);
    }
public function getShort($offset = 0)
    {
        /*
         * Validate the offset+1 to see if we can safely get two bytes ---
         * this throws an exception if offset is out of range.
         */
        $this->validateOffset($offset);
        $this->validateOffset($offset + 1);

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

        /* Return an unsigned short. */
        return PelConvert::bytesToShort($this->data, $offset, $this->order);
    }
public function getShort ( $ offset = 0 ) { /*
         * Validate the offset+1 to see if we can safely get two bytes ---
         * this throws an exception if offset is out of range.
         */ $ this -> validateOffset ( $ offset ) ; $ this -> validateOffset ( $ offset + 1 ) ; /* Translate the offset into an offset into the data. */ $ offset += $ this -> start ; /* Return an unsigned short. */ return PelConvert :: bytesToShort ( $ this -> data , $ offset , $ this -> order ) ; }
Return an unsigned short read from the data.

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

@return integer the unsigned short found at offset.
@throws PelDataWindowOffsetException
Return an unsigned short read from the data .