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

Struct dataEncoder

encoder.go:92–115  ·  view source on GitHub ↗

A dataEncoder encodes data for a particular QR Code version.

Source from the content-addressed store, hash-verified

90
91// A dataEncoder encodes data for a particular QR Code version.
92type dataEncoder struct {
93 // Minimum & maximum versions supported.
94 minVersion int
95 maxVersion int
96
97 // Mode indicator bit sequences.
98 numericModeIndicator *bitset.Bitset
99 alphanumericModeIndicator *bitset.Bitset
100 byteModeIndicator *bitset.Bitset
101
102 // Character count lengths.
103 numNumericCharCountBits int
104 numAlphanumericCharCountBits int
105 numByteCharCountBits int
106
107 // The raw input data.
108 data []byte
109
110 // The data classified into unoptimised segments.
111 actual []segment
112
113 // The data classified into optimised segments.
114 optimised []segment
115}
116
117// newDataEncoder constructs a dataEncoder.
118func newDataEncoder(t dataEncoderType) *dataEncoder {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected