readLShort() public static method

Reads a 16-bit unsigned little-endian number
public static readLShort ( $str ) : integer
$str
return integer
Exemplo n.º 1
0
 public function getLShort($signed = true)
 {
     return $signed ? Binary::readSignedLShort($this->get(2)) : Binary::readLShort($this->get(2));
 }
Exemplo n.º 2
0
 public function getShort()
 {
     return $this->endianness === self::BIG_ENDIAN ? Binary::readShort($this->get(2)) : Binary::readLShort($this->get(2));
 }