private static String align(int value, int digits) {
        final String valueString = String.valueOf(value);
        StringBuilder result = new StringBuilder();
        for (int i = valueString.length(); i < digits; i++) {
            result.append(" ");
        }
        result.append(valueString);
        return result.toString();
    }
\n");
        if (msbFirst) {
            fw.append(" * Packs from the Most Significant Bit first\n");
        } else {
            fw.append(" * Packs from the Least Significant Bit first\n");
        }
        fw.append(" * \n");
        fw.append(" * @author automatically generated\n");
        fw.append(" * @see ByteBasedBitPackingGenerator\n");
        fw.append(" *\n");
        fw.append("
indexr-codegen/src/main/java/io/indexr/vlt/codec/pack/PackingClassGen.java