com.virjar.sekiro.api.compress.SnappyCompressor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sekiro-api Show documentation
Show all versions of sekiro-api Show documentation
ratel api,used for developer on ratel system,an extension for xposed framewrok,ratel api compatable with original xposed framework
package com.virjar.sekiro.api.compress;
import org.xerial.snappy.Snappy;
import java.io.IOException;
public class SnappyCompressor implements Compressor {
@Override
public String method() {
return "Snappy";
}
@Override
public byte[] compress(byte[] input) throws IOException {
return Snappy.compress(input);
}
@Override
public byte[] decompress(byte[] input) throws IOException {
return Snappy.uncompress(input);
}
}