MCPcopy Create free account
hub / github.com/skip2/go-qrcode / qrCodeVersion

Struct qrCodeVersion

version.go:36–54  ·  view source on GitHub ↗

qrCodeVersion describes the data length and encoding order of a single QR Code version. There are 40 versions numbers x 4 recovery levels == 160 possible qrCodeVersion structures.

Source from the content-addressed store, hash-verified

34// Code version. There are 40 versions numbers x 4 recovery levels == 160
35// possible qrCodeVersion structures.
36type qrCodeVersion struct {
37 // Version number (1-40 inclusive).
38 version int
39
40 // Error recovery level.
41 level RecoveryLevel
42
43 dataEncoderType dataEncoderType
44
45 // Encoded data can be split into multiple blocks. Each block contains data
46 // and error recovery bytes.
47 //
48 // Larger QR Codes contain more blocks.
49 block []block
50
51 // Number of bits required to pad the combined data & error correction bit
52 // stream up to the symbol's full capacity.
53 numRemainderBits int
54}
55
56type block struct {
57 numBlocks int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected