Nintenlord.ROMHacking.GBA.GBAROM.DecompressLZ77CompressedData C# (CSharp) Method

DecompressLZ77CompressedData() public method

public DecompressLZ77CompressedData ( int offset ) : byte[]
offset int
return byte[]
        public byte[] DecompressLZ77CompressedData(int offset)
        {
            return LZ77.Decompress(ROMdata, offset);
        }

Usage Example

コード例 #1
0
 public void ReadCompressedData(GBAROM rom, int offset)
 {
     hasBeenEdited = false;
     data.Clear();
     try
     {
         data.AddRange(rom.DecompressLZ77CompressedData(offset));
     }
     catch (ArgumentNullException e)
     {
         throw new ArgumentException("The data at offset " + offset.ToString("X8") + " can't be decompressed.", e);
     }
 }