JFlex

Class HiLowEmitter

public class HiLowEmitter extends PackEmitter

HiLowEmitter
Constructor Summary
HiLowEmitter(String name)
Create new emitter for values in [0, 0xFFFFFFFF] using hi/low encoding.
Method Summary
voidemit(int val)
Emit one value using two characters.
voidemitUnpack()
Emits hi/low pair unpacking code for the generated array.

Constructor Detail

HiLowEmitter

public HiLowEmitter(String name)
Create new emitter for values in [0, 0xFFFFFFFF] using hi/low encoding.

Parameters: name the name of the generated array

Method Detail

emit

public void emit(int val)
Emit one value using two characters.

Parameters: val the value to emit

UNKNOWN: 0 <= val <= 0xFFFFFFFF

emitUnpack

public void emitUnpack()
Emits hi/low pair unpacking code for the generated array.

See Also: PackEmitter