Hierarchy

  • State

Index

Constructors

constructor

  • new State(token: Token, mode: number, binaryBytes: number, bitCount: number): State
  • Parameters

    • token: Token
    • mode: number
    • binaryBytes: number
    • bitCount: number

    Returns State

Properties

binaryShiftByteCount

binaryShiftByteCount: number

bitCount

bitCount: number

mode

mode: number

token

token: Token

Static Readonly INITIAL_STATE

INITIAL_STATE: State = new State(new SimpleToken(null, 0, 0), 0, 0, 0)

Methods

addBinaryShiftChar

  • addBinaryShiftChar(index: number): State
  • Parameters

    • index: number

    Returns State

appendFLGn

  • appendFLGn(eci: number): State
  • Parameters

    • eci: number

    Returns State

endBinaryShift

  • endBinaryShift(index: number): State
  • Parameters

    • index: number

    Returns State

isBetterThanOrEqualTo

  • isBetterThanOrEqualTo(other: State): boolean
  • Parameters

    Returns boolean

latchAndAppend

  • latchAndAppend(mode: number, value: number): State
  • Parameters

    • mode: number
    • value: number

    Returns State

shiftAndAppend

  • shiftAndAppend(mode: number, value: number): State
  • Parameters

    • mode: number
    • value: number

    Returns State

toBitArray

  • Parameters

    • text: number[]

    Returns BitArray

Generated using TypeDoc