Houjie
2025-07-24 1bc8f80935add7215fa98de1ab8b375b222a2046
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);
}