java.lang.Object
me.hugmanrique.cartage.compression.GBADiffUnfilterer
- All Implemented Interfaces:
Decompressor
Implements the DiffUnFilter algorithms with 8-bit and 16-bit data sizes, present in the BIOS of
the GBA and Nintendo DS.
- See Also:
- GBATEK
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]decompress(Cartridge cartridge)Decompresses data starting at the current offset of the given cartridge.static GBADiffUnfiltererget()Returns an unfilterer instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hugmanrique.cartage.compression.Decompressor
decompress
-
Method Details
-
get
Returns an unfilterer instance.- Returns:
- the unfilterer
-
decompress
Description copied from interface:DecompressorDecompresses data starting at the current offset of the given cartridge. The offset of the cartridge is incremented by the number of bytes read.- Specified by:
decompressin interfaceDecompressor- Parameters:
cartridge- the cartridge- Returns:
- the decompressed data
- Throws:
DecompressionException- if an error occurs while attempting decompression
-