MCPcopy Create free account
hub / github.com/VolmitSoftware/Adapt / compress

Method compress

src/main/java/com/volmit/adapt/util/LZString.java:125–132  ·  view source on GitHub ↗
(String uncompressed)

Source from the content-addressed store, hash-verified

123 }
124
125 public static String compress(String uncompressed) {
126 return LZString._compress(uncompressed, 16, new CompressFunctionWrapper() {
127 @Override
128 public char doFunc(int a) {
129 return fc(a);
130 }
131 });
132 }
133
134 private static String _compress(String uncompressedStr, int bitsPerChar, CompressFunctionWrapper getCharFromInt) {
135 if (uncompressedStr == null) return "";

Callers

nothing calls this directly

Calls 1

_compressMethod · 0.95

Tested by

no test coverage detected