Houjie
2025-07-24 52a3ff1bce1417b39f6872d8e8cb378e9c2ccc6f
1
2
3
4
5
6
7
8
9
import SimpleToken from './SimpleToken';
import BinaryShiftToken from './BinaryShiftToken';
export function addBinaryShift(token, start, byteCount) {
    // int bitCount = (byteCount * 8) + (byteCount <= 31 ? 10 : byteCount <= 62 ? 20 : 21);
    return new BinaryShiftToken(token, start, byteCount);
}
export function add(token, value, bitCount) {
    return new SimpleToken(token, value, bitCount);
}