function _readint($f) { // Read a 4-byte integer from stream $a = unpack('Ni', $this->_readstream($f, 4)); return $a['i']; }