cxdf (compact cross differentiation format) was developed for JuraviS in order to streamline a compact and effective format for modifying game files based on their original counterparts. This format aims to give an alternative to including copyrighted data into patch files.
All values are stored in Little-Endian.
J5
or [0x4A
,0x35
]00001000
: Resize on filesize mismatch00000111
: New filesize byte count11110000
: Instruction ID00001000
:00000111
: Seek/Hop offset byte countWrites a single byte with the given value to the current offset of the modification buffer.
Writes a single byte repeating for a given length to the current offset of the modification buffer.
Same as above; long version;
Writes a buffer of bytes to the current offset of the modification buffer.
Same as above; long version;
Writes a buffer of bytes repeating a number of times to the current offset of the modification buffer.
Same as above; long version;
Copies a buffer of bytes from the unmodified buffer back to the current position in the modification buffer.
10000000
:00111000
: Offset byte size00000111
: Copy length byte size0x00
→ 1, 0xFF
→ 256)