public DecompressLZ77CompressedData ( int offset ) : byte[] | ||
offset | int | |
return | byte[] |
public byte[] DecompressLZ77CompressedData(int offset)
{
return LZ77.Decompress(ROMdata, offset);
}
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); } }