Read magic number as a uint.