public function readShort()
    {
        try {
            $bin = $this->getStream()->read(2);

            return current(unpack('S', $bin));
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::SHORT);
        }
    }
public function readShort()
    {
        try {
            $bin = $this->getStream()->read(2);

            return current(unpack('S', $bin));
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::SHORT);
        }
    }
public function readShort ( ) { try { $ bin = $ this -> getStream ( ) -> read ( 2 ) ; return current ( unpack ( 'S' , $ bin ) ) ; } catch ( StreamException $ e ) { $ this -> handleStreamException ( $ e , BinaryStreamAccessException :: SHORT ) ; } }
Read a 2 bytes unsigned integer from the current binary stream.

@throws \qtism\common\storage\BinaryStreamAccessException
@return integer
Read a 2 bytes unsigned integer from the current binary stream .