public byte[] decompress(byte[] input, int inputOffset, int inputLength) {
        int decompressedLength = getDecompressedLength(input, inputOffset, inputLength);
        byte[] output = new byte[decompressedLength];
        decompress(input, inputOffset, inputLength, output, 0, decompressedLength);
        return output;
    }
Note:
  Implementation assumes single frame (since {@link #getDecompressedLength(byte[], int, int)} only includes the first frame)
  The {@link #decompress(byte[], int, int, byte[], int, int)} overload will try to decompress all frames, causing the output buffer to overflow.
vespajlib/src/main/java/com/yahoo/compress/ZstdCompressor.java