Class HiCountEmitter


public class HiCountEmitter extends CountEmitter
An emitter for an array encoded as count/value pairs in a string where values can be in [0, 0xFFFF_FFFF].
Version:
JFlex 1.9.1
  • Constructor Details

    • HiCountEmitter

      protected HiCountEmitter(String name, int translate)
      Create a count/value emitter for a specific field.
      Parameters:
      name - name of the generated array
  • Method Details

    • emitUnpackChunk

      public void emitUnpackChunk()
      Emits count/value unpacking code for the generated array.
      Overrides:
      emitUnpackChunk in class CountEmitter
      See Also:
    • emitValue

      protected void emitValue(int val)
      Emits a single value to the current string chunk. Accepted range is [0, 0xFFFF_FFFF]
      Overrides:
      emitValue in class CountEmitter
      Parameters:
      val - the integer value to emit