/** * Read a two byte 16-bit UNSIGNED short. * * @param int $endianess read number with specified endianess, defaults to the file endianess. * * @return int */ public function readUint16($endianess = -1) { if (isset($this->handle)) { return DataHandler::unpackUint16(fread($this->handle, 2), $this->getTargetEndianess($endianess)); } return 0; }