java.lang.Object
me.hugmanrique.cartage.compression.GBARLDecompressor
- All Implemented Interfaces:
Decompressor
Implements the RLUnCompRead algorithm, 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 GBARLDecompressorget()Returns a decompressor 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 a decompressor instance.- Returns:
- the decompressor
-
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
-