readLShort() public static méthode

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