vendor/bacon/bacon-qr-code/src/BaconQrCode/Common/FormatInformation.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
/**
 * BaconQrCode
 *
 * @link      http://github.com/Bacon/BaconQrCode For the canonical source repository
 * @copyright 2013 Ben 'DASPRiD' Scholzen
 * @license   http://opensource.org/licenses/BSD-2-Clause Simplified BSD License
 */

namespace BaconQrCode\Common;

/**
 * Encapsulates a QR Code's format information, including the data mask used and
 * error correction level.
 */
class FormatInformation
{
    /**
     * Mask for format information.
     */
    const FORMAT_INFO_MASK_QR = 0x5412;

    /**
     * Lookup table for decoding format information.
     *
     * See ISO 18004:2006, Annex C, Table C.1
     *
     * @var array
     */
    protected static $formatInfoDecodeLookup = array(
        array(0x5412, 0x00),
        array(0x5125, 0x01),
        array(0x5e7c, 0x02),
        array(0x5b4b, 0x03),
        array(0x45f9, 0x04),
        array(0x40ce, 0x05),
        array(0x4f97, 0x06),
        array(0x4aa0, 0x07),
        array(0x77c4, 0x08),
        array(0x72f3, 0x09),
        array(0x7daa, 0x0a),
        array(0x789d, 0x0b),
        array(0x662f, 0x0c),
        array(0x6318, 0x0d),
        array(0x6c41, 0x0e),
        array(0x6976, 0x0f),
        array(0x1689, 0x10),
        array(0x13be, 0x11),
        array(0x1ce7, 0x12),
        array(0x19d0, 0x13),
        array(0x0762, 0x14),
        array(0x0255, 0x15),
        array(0x0d0c, 0x16),
        array(0x083b, 0x17),
        array(0x355f, 0x18),
        array(0x3068, 0x19),
        array(0x3f31, 0x1a),
        array(0x3a06, 0x1b),
        array(0x24b4, 0x1c),
        array(0x2183, 0x1d),

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。