- java.lang.Object
-
- au.notzed.dez.DEZDecoder
-
- All Implemented Interfaces:
DEZFormat
public class DEZDecoder extends java.lang.Object implements DEZFormat
Decodes a DEZ patch.Typically one would use
DEZFormat.decode(byte[], byte[])
instead of this class.- See Also:
DEZEncoder
,DEZFormat
-
-
Field Summary
-
Fields inherited from interface au.notzed.dez.DEZFormat
ADDR_ABSOLUTE, ADDR_RELATIVE, ADDR_SIGN, MAGIC, OP_ADD, OP_COPY, OP_DUAL_COPY, OP_EXT, OP_RUN, OP_SINGLE, OP_SINGLE_LIMIT, OP_SINGLE_SPLIT
-
-
Constructor Summary
Constructors Constructor Description DEZDecoder(byte[] source, byte[] patch)
Create a new decoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
decode()
Perorm decoding.
-
-
-
Method Detail
-
decode
public byte[] decode() throws DEZFormatException
Perorm decoding.Recreates the original target data from the source and patch.
- Returns:
- The decoded data.
- Throws:
DEZFormatException
- If the patch is invalid or the crc check fails.
-
-