Class TranscoderUtils.ByteBufToArray

  • Enclosing class:
    TranscoderUtils

    public static class TranscoderUtils.ByteBufToArray
    extends Object
    A class that holds information from a ByteBuf that allows to read its corresponding byte array. Offset and length are needed in case the ByteBuf is directly backed by a byte[] but the size of the byte isn't representative of the actual size of the current content.
    • Field Detail

      • byteArray

        public final byte[] byteArray
      • offset

        public final int offset
      • length

        public final int length
    • Constructor Detail

      • ByteBufToArray

        public ByteBufToArray​(byte[] byteArray,
                              int offset,
                              int length)