$magic =
hexdec(substr(dechex(current($magic)), -8
));
if (self::MO_LITTLE_ENDIAN_MAGIC ==
$magic) { $isBigEndian = false;
} elseif (self::MO_BIG_ENDIAN_MAGIC ==
$magic) { $isBigEndian = true;
} else { throw new InvalidResourceException('MO stream content has an invalid format.'
);
} // formatRevision
$this->
readLong($stream,
$isBigEndian);
$count =
$this->
readLong($stream,
$isBigEndian);
$offsetId =
$this->
readLong($stream,
$isBigEndian);
$offsetTranslated =
$this->
readLong($stream,
$isBigEndian);
// sizeHashes
$this->
readLong($stream,
$isBigEndian);
// offsetHashes
$this->
readLong($stream,
$isBigEndian);
$messages =
[];
for ($i = 0;
$i <
$count; ++
$i) {