Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DecodedBitStreamParser

Data Matrix Codes can encode text as bits in one of several modes, and can use multiple modes in one Data Matrix Code. This class decodes the bits back into text.

See ISO 16022:2006, 5.2.1 - 5.2.9.2

author

bbrown@google.com (Brian Brown)

author

Sean Owen

Hierarchy

  • DecodedBitStreamParser

Index

Properties

Static Private C40_BASIC_SET_CHARS

C40_BASIC_SET_CHARS: string[] = ['*', '*', '*', ' ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9','A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N','O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']

See ISO 16022:2006, Annex C Table C.1 The C40 Basic Character Set (*'s used for placeholders for the shift values)

Static Private C40_SHIFT2_SET_CHARS

C40_SHIFT2_SET_CHARS: string[] = ['!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.','/', ':', ';', '<', '=', '>', '?', '@', '[', '\\', ']', '^', '_']

Static Private TEXT_BASIC_SET_CHARS

TEXT_BASIC_SET_CHARS: string[] = ['*', '*', '*', ' ', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9','a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n','o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']

See ISO 16022:2006, Annex C Table C.2 The Text Basic Character Set (*'s used for placeholders for the shift values)

Static Private TEXT_SHIFT2_SET_CHARS

TEXT_SHIFT2_SET_CHARS: string[] = DecodedBitStreamParser.C40_SHIFT2_SET_CHARS

Static Private TEXT_SHIFT3_SET_CHARS

TEXT_SHIFT3_SET_CHARS: string[] = ['`', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N','O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '{', '|', '}', '~', String.fromCharCode(127)]

Methods

Static decode

Static Private decodeAnsiX12Segment

Static Private decodeAsciiSegment

Static Private decodeBase256Segment

Static Private decodeC40Segment

Static Private decodeEdifactSegment

Static Private decodeTextSegment

Static Private parseTwoBytes

  • parseTwoBytes(firstByte: number, secondByte: number, result: number[]): void

Static Private unrandomize255State

  • unrandomize255State(randomizedBase256Codeword: number, base256CodewordPosition: number): number

Generated using TypeDoc