docs: public int writeBytesTo(byte[] dest, int offset, int maxLength) {
      maxLength = Ints.min(maxLength, bits() / 8);
      Preconditions.checkPositionIndexes(offset, offset + maxLength, dest.length);
      writeBytesToImpl(dest, offset, maxLength);
      return maxLength;
    }