Options
All
  • Public
  • Public/Protected
  • All
Menu

Class 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

Hierarchy

  • HighLevelEncoder

Index

Constructors

constructor

Properties

Private text

text: Uint8Array

Methods

encode

Private updateStateForChar

  • updateStateForChar(state: State, index: int, result: Collection<State>): void

Private updateStateListForChar

  • updateStateListForChar(states: State[], index: int): Collection<State>

Static Private simplifyStates

  • simplifyStates(states: State[]): Collection<State>

Static Private updateStateForPair

  • updateStateForPair(state: State, index: int, pairCode: int, result: Collection<State>): void

Static Private updateStateListForPair

  • updateStateListForPair(states: State[], index: int, pairCode: int): Collection<State>

Generated using TypeDoc