Class TranscoderUtils.ByteBufToArray

java.lang.Object
com.couchbase.client.java.transcoder.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 Details

    • byteArray

      public final byte[] byteArray
    • offset

      public final int offset
    • length

      public final int length
  • Constructor Details

    • ByteBufToArray

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