public function readFixed32(Stream $stream)
    {
        $bytes = $stream->read(4);

        if (PHP_INT_SIZE < 8) {
            list(, $lo, $hi) = unpack('v*', $bytes);

            return $hi << 16 | $lo;
        }

        list(, $result) = unpack('V*', $bytes);

        return $result;
    }