docs: public static Bytes toBytes(ByteSequence bs) {
      if (bs.length() == 0) {
        return Bytes.EMPTY;
      }
  
      if (bs.isBackedByArray()) {
        return Bytes.of(bs.getBackingArray(), bs.offset(), bs.length());
      } else {
        return Bytes.of(bs.toArray(), 0, bs.length());
      }
    }