public static int getMaxCompressedLength(int uncompressedLength) {
        return threadUnsafe.maxCompressedLength(uncompressedLength);
    }
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