public function read(AbstractStream $stream)
    {
        return $stream->getBuffer()->readInt($this->getSize(), $this->getSigned(), $this->getEndian());
    }
public function read(AbstractStream $stream)
    {
        return $stream->getBuffer()->readInt($this->getSize(), $this->getSigned(), $this->getEndian());
    }
public function read ( AbstractStream $ stream ) { return $ stream -> getBuffer ( ) -> readInt ( $ this -> getSize ( ) , $ this -> getSigned ( ) , $ this -> getEndian ( ) ) ; }
Read data from Stream and cast it to integer.

@param AbstractStream $stream Stream from which read.
@return int Result value.
Read data from Stream and cast it to integer .