ByteBufUtil.getBytes

Return an array of the underlying storage from {@code buf} into a byte array. The copy will start at {@code start} and copy {@code length} bytes. If {@code copy} is true a copy will be made of the memory. If {@code copy} is false the underlying storage will be shared, if possible.

  1. byte[] getBytes(ByteBuf buf)
  2. byte[] getBytes(ByteBuf buf, int start, int length)
  3. byte[] getBytes(ByteBuf buf, int start, int length, bool copy)
    class ByteBufUtil
    static
    byte[]
    getBytes
    (,
    int start
    ,
    int length
    ,
    bool copy
    )

Meta