java.lang.Object
me.hugmanrique.cartage.compression.GBALZXDecompressor
- All Implemented Interfaces:
Decompressor
Implements the LZX decompression algorithm in big-endian mode, used in some Nintendo DS games.
- See Also:
- CUE Nintendo DS/GBA compressors
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]decompress(Cartridge cartridge)Decompresses data starting at the current offset of the given cartridge.static GBALZXDecompressorget()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
-