public byte[] compress(byte[] input, int inputOffset, int inputLength) {
        int maxCompressedLength = getMaxCompressedLength(inputLength);
        byte[] output = new byte[maxCompressedLength];
        int compressedLength = compress(input, inputOffset, inputLength, output, 0, maxCompressedLength);
        return Arrays.copyOf(output, compressedLength);
    }
Frame based Zstd compressor (https://github.com/facebook/zstd)
Implemented based on https://github.com/airlift/aircompressor - a pure Java implementation (no JNI).

@author bjorncs
vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java