Class StringUtil.Hex2B

java.lang.Object
io.netty.util.internal.StringUtil.Hex2B
Enclosing class:
StringUtil

private static final class StringUtil.Hex2B extends Object
Lazily initialized hexadecimal digit to value table, kept separate from StringUtil.Byte2Hex so that decoding (used for instance to parse the machine id) does not pay for the byte to string tables.

The table stores value + 1: a zero entry means "not a hex digit", so the zero-filled array needs no Arrays.fill pass over its 64 KiB, which is costly when run by the interpreter at startup.

  • Field Details

    • TABLE

      static final byte[] TABLE
  • Constructor Details

    • Hex2B

      private Hex2B()