code: public static byte[] getBytes(ByteBuf buf, int start, int length) {
          return getBytes(buf, start, length, true);
      }
docs: Create a copy of the underlying storage from {@code buf} into a byte array.
  The copy will start at {@code start} and copy {@code length} bytes.