readLShort() public static method

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