Class ValueEncoderFactory.FloatEncoder

Enclosing class:
ValueEncoderFactory

static final class ValueEncoderFactory.FloatEncoder extends ValueEncoderFactory.TypedScalarEncoder
  • Field Details

    • _value

      float _value
  • Constructor Details

    • FloatEncoder

      protected FloatEncoder()
  • Method Details

    • reset

      protected void reset(float value)
    • encodeMore

      public int encodeMore(char[] buffer, int ptr, int end)
      Specified by:
      encodeMore in class AsciiValueEncoder
      Returns:
      Value of pointer after all remaining data (which may be "none") that can be encoded (as constrained by buffer length) has been encoded. Has to exceed 'ptr' value sent in; will be equal to it if nothing was encoded (which should only occur when everything has been encoded, as long as AsciiValueEncoder.bufferNeedsFlush(int) is appropriately called once before calling this method)
    • encodeMore

      public int encodeMore(byte[] buffer, int ptr, int end)
      Specified by:
      encodeMore in class AsciiValueEncoder
      Returns:
      Value of pointer after all remaining data (which may be "none") that can be encoded (as constrained by buffer length) has been encoded. Has to exceed 'ptr' value sent in; will be equal to it if nothing was encoded (which should only occur when everything has been encoded, as long as AsciiValueEncoder.bufferNeedsFlush(int) is appropriately called once before calling this method)