AcManager.PackedHelper.DecompressLzfSmart C# (CSharp) 메소드

DecompressLzfSmart() 개인적인 정적인 메소드

private static DecompressLzfSmart ( byte input ) : byte[]
input byte
리턴 byte[]
        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;
        }