Houjie
2025-07-24 52a3ff1bce1417b39f6872d8e8cb378e9c2ccc6f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import BitArray from '../../common/BitArray';
import Token from './Token';
import { int } from '../../../customTypings';
/**
 * State represents all information about a sequence necessary to generate the current output.
 * Note that a state is immutable.
 */
export default class State {
    static INITIAL_STATE: State;
    private mode;
    private token;
    private binaryShiftByteCount;
    private bitCount;
    private constructor();
    getMode(): int;
    getToken(): Token;
    getBinaryShiftByteCount(): int;
    getBitCount(): int;
    latchAndAppend(mode: int, value: int): State;
    shiftAndAppend(mode: int, value: int): State;
    addBinaryShiftChar(index: int): State;
    endBinaryShift(index: int): State;
    isBetterThanOrEqualTo(other: State): boolean;
    toBitArray(text: Uint8Array): BitArray;
    /**
     * @Override
     */
    toString(): String;
    private static calculateBinaryShiftCost;
}