Houjie
2025-07-24 52a3ff1bce1417b39f6872d8e8cb378e9c2ccc6f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**
 * <p>Encapsulates a set of error-correction blocks in one symbol version. Most versions will
 * use blocks of differing sizes within one version, so, this encapsulates the parameters for
 * each set of blocks. It also holds the number of error-correction codewords per block since it
 * will be the same across all blocks within one version.</p>
 */
export declare class ECBlocks {
    private ecCodewords;
    private ecBlocks;
    constructor(ecCodewords: number, ecBlocks1: ECB, ecBlocks2?: ECB);
    getECCodewords(): number;
    getECBlocks(): ECB[];
}
/**
 * <p>Encapsulates the parameters for one error-correction block in one symbol version.
 * This includes the number of data codewords, and the number of times a block with these
 * parameters is used consecutively in the Data Matrix code version's format.</p>
 */
export declare class ECB {
    private count;
    private dataCodewords;
    constructor(count: number, dataCodewords: number);
    getCount(): number;
    getDataCodewords(): number;
}
/**
 * The Version object encapsulates attributes about a particular
 * size Data Matrix Code.
 *
 * @author bbrown@google.com (Brian Brown)
 */
export default class Version {
    private static VERSIONS;
    private versionNumber;
    private symbolSizeRows;
    private symbolSizeColumns;
    private dataRegionSizeRows;
    private dataRegionSizeColumns;
    private ecBlocks;
    private totalCodewords;
    constructor(versionNumber: any, symbolSizeRows: any, symbolSizeColumns: any, dataRegionSizeRows: any, dataRegionSizeColumns: any, ecBlocks: ECBlocks);
    getVersionNumber(): number;
    getSymbolSizeRows(): number;
    getSymbolSizeColumns(): number;
    getDataRegionSizeRows(): number;
    getDataRegionSizeColumns(): number;
    getTotalCodewords(): number;
    getECBlocks(): ECBlocks;
    /**
     * <p>Deduces version information from Data Matrix dimensions.</p>
     *
     * @param numRows Number of rows in modules
     * @param numColumns Number of columns in modules
     * @return Version for a Data Matrix Code of those dimensions
     * @throws FormatException if dimensions do correspond to a valid Data Matrix size
     */
    static getVersionForDimensions(numRows: number, numColumns: number): Version;
    toString(): string;
    /**
     * See ISO 16022:2006 5.5.1 Table 7
     */
    private static buildVersions;
}