O que é o formato de ficheiro XDELTA?
Um arquivo .xdelta é um patch binário criado pelo xdelta, uma ferramenta de compressão delta de código aberto e biblioteca C iniciada por Joshua P. MacDonald. Em vez de conter um arquivo inteiro, ele armazena apenas as diferenças entre um arquivo original e uma versão modificada. Como dois arquivos semelhantes geralmente diferem em apenas alguns lugares, o patch é muito menor do que os próprios arquivos, o que torna o .xdelta uma forma compacta de distribuir alterações.
O xdelta moderno (a linha xdelta3) grava patches no formato VCDIFF definido pela RFC 3284. Um fluxo VCDIFF começa com os bytes V, C, D com seus bits altos definidos (hex D6 C3 C4) seguidos por um byte de versão. Internamente, o patch é uma série de instruções de cópia, adição e execução que dizem ao xdelta como reconstruir o destino a partir da origem. Você encontrará arquivos .xdelta com mais frequência em modificações de jogos e traduções de ROMs, onde os autores distribuem um pequeno patch em vez de um original protegido por direitos autorais.
Segurança e proteção
RISCO: MEDIUMA .xdelta file is passive data and cannot run on its own. The real risk is what it patches: applying a patch produces a new file (often a game ROM, ISO, or executable) whose safety depends on the patch author. Only apply patches to the correct, expected original file and from sources you trust, since a malicious patch could turn a clean file into a modified executable. Applying a patch to the wrong source usually just fails a checksum rather than corrupting anything.
Detalhes do formato
em resumo- xdelta1 legacy patches - Files from the original 1997-era xdelta (version 1) also used the .xdelta name but a different, non-VCDIFF on-disk layout; they are not compatible with xdelta3.
Programas que abrem arquivos XDELTA
xdelta3 -d -s original.bin patch.xdelta output.bin in a terminal to apply the patch against the original file. .xdelta patch, then click Apply Patch to produce the patched file. It is self-contained and does not need a separate xdelta binary. .xdelta patch in the Apply tab to generate the patched output; commonly used for ROM patches. brew install xdelta, then run xdelta3 -d -s original patch.xdelta output to apply the patch. .xdelta patch and apply it without touching a terminal. xdelta3 package from your distro, then run xdelta3 -d -s original patch.xdelta output to rebuild the patched file. .xdelta patches with a graphical interface. .xdelta patch into the browser page to apply the patch locally without installing anything. Detalhes técnicos
especificação profunda| Encoding | Binary VCDIFF (RFC 3284) delta stream with COPY, ADD and RUN instructions referencing a source file |
| Byte order | Endian-independent by design; integers are stored as variable-length, byte-order-neutral values |
| Container | VCDIFF window/section layout (header, then one or more windows each with instruction, data and address sections) |
| Compression | Secondary compression selectable at encode time: djw (default in many builds), lzma, fgk, or none |
| Typical size | Small relative to the target file; often a tiny fraction of the original when the two files are similar |
| Structure | A .xdelta file stores the difference between a source file and a target file. It is not a standalone document: applying it requires the exact original (source) file, from which xdelta reconstructs the target byte-for-byte. |
| Integrity | xdelta3 can embed and verify source and output checksums (Adler-32, and BLAKE3 in recent 3.2.x builds) to confirm the correct source file and a correct reconstruction |
| Platforms | Windows, macOS, Linux, BSD |
| Notes | Created by the xdelta command-line tool and C library. Widely used to distribute game translations and mods (ROM/ISO patches) because delta encoding accounts for shifted data and avoids embedding copyrighted source bytes. |
| Lançado | 1997 (xdelta1); xdelta3 series in the 2000s |
| Versão mais recente | xdelta3 3.2.x |
| Padrão aberto | Sim · livre de royalties |
| Especificação | datatracker.ietf.org |
Conversões de XDELTA
Perguntas e Respostas da Comunidade
perguntado por usuáriosAinda não há perguntas - seja o primeiro a perguntar sobre arquivos XDELTA.
Perguntas frequentes
Como faço para abrir um arquivo .xdelta?
xdelta3 (xdelta3 -d -s original patch.xdelta output) ou uma GUI como Delta Patcher ou xdelta UI, que solicitam o arquivo de origem e o patch.Por que meu patch .xdelta não é aplicado?
Qual programa cria arquivos .xdelta?
xdelta3 -e -s original modified patch.xdelta. Ferramentas GUI como o Delta Patcher também podem gerá-los comparando dois arquivos que você fornecer.Um arquivo .xdelta é o mesmo que um arquivo VCDIFF?
.xdelta e um .vcdiff feitos pelo xdelta3 contêm o mesmo tipo de dados. A extensão é apenas uma escolha de nomenclatura.Os arquivos .xdelta são seguros?
Posso ver o que há dentro de um arquivo .xdelta?
xdelta3 printhdr patch.xdelta ou xdelta3 -v, mas o resultado significativo só aparece depois que você o aplica ao arquivo de origem.