Class NumberEncoder

  • All Implemented Interfaces:
    ChannelDownstreamHandler, ChannelHandler

    public class NumberEncoder
    extends OneToOneEncoder
    Encodes a Number into the binary representation prepended with a magic number ('F' or 0x46) and a 32-bit length prefix. For example, 42 will be encoded to { 'F', 0, 0, 0, 1, 42 }.