private static byte[] DecompressLzfSmart(byte[] input) {
if (input.Length == 0) return new byte[0];
var size = BitConverter.ToInt32(input, 0);
var result = new byte[size];
var decompress = Decompress(input, 4, input.Length, result);
if (decompress != size) {
throw new Exception($"Invalid data ({decompress}≠{size})");
}
return result;
}