C# Class ZXing.Aztec.Internal.HighLevelEncoder

This produces nearly optimal encodings of text into the first-level of encoding used by Aztec code. It uses a dynamic algorithm. For each prefix of the string, it determines a set of encodings that could lead to this prefix. We repeatedly add a character and generate a new set of optimal encodings until we have read through the entire input. @author Frank Yellin @author Rustam Abdullaev
Exibir arquivo Open project: Redth/ZXing.Net.Mobile Class Usage Examples

Public Methods

Method Description
HighLevelEncoder ( byte text ) : System
encode ( ) : BitArray

Convert the text represented by this High Level Encoder into a BitArray.

Private Methods

Method Description
HighLevelEncoder ( ) : System
simplifyStates ( IEnumerable states ) : ICollection
updateStateForChar ( ZXing.Aztec.Internal.State state, int index, ICollection result ) : void
updateStateForPair ( ZXing.Aztec.Internal.State state, int index, int pairCode, ICollection result ) : void
updateStateListForChar ( IEnumerable states, int index ) : ICollection
updateStateListForPair ( IEnumerable states, int index, int pairCode ) : ICollection

Method Details

HighLevelEncoder() public method

public HighLevelEncoder ( byte text ) : System
text byte
return System

encode() public method

Convert the text represented by this High Level Encoder into a BitArray.
public encode ( ) : BitArray
return ZXing.Common.BitArray