
lowentry.ue4.examples.ExampleCompression Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java Show documentation
Show all versions of java Show documentation
A Java library for the Low Entry UE4 plugins.
package lowentry.ue4.examples;
import lowentry.ue4.library.LowEntry;
public class ExampleCompression
{
public static void main(String[] args) throws Throwable
{
byte[] data = LowEntry.stringToBytesUtf8("test aaaaaaaadsfdsfgaaaaaaaa test aaaaaaaaaaaaaaedsfdsfgaaaaasdgsdgaaaaaa");
System.out.println("data (" + data.length + "): " + LowEntry.bytesToHex(data));
byte[] compressed = LowEntry.compressLzf(data);
System.out.println("compressed (" + compressed.length + "): " + LowEntry.bytesToHex(compressed));
byte[] decompressed = LowEntry.decompressLzf(compressed);
System.out.println("decompressed (" + decompressed.length + "): " + LowEntry.bytesToHex(decompressed));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy