commit e8ab6b008c9f9bf73cfe086452ee25811db7c85e parent 5dd9567aa339c70db072780c1dc0ed9edcf679f2 Author: sin <sin@2f30.org> Date: Sat, 2 Mar 2013 20:03:01 +0000 Add an initial description of the mdiff file format Diffstat:
A | mdiff-fmt | | | 23 | +++++++++++++++++++++++ |
1 file changed, 23 insertions(+), 0 deletions(-)
diff --git a/mdiff-fmt b/mdiff-fmt @@ -0,0 +1,22 @@ +File format of the mdiff files +============================== + +struct mdiff_hdr { + /* MDIFF\0 */ + char magic[6]; + /* Number of memory diff regions */ + uint32_t nregions; +}; + +struct mdiff_region { + /* Offset into memory where this region should + * be written to */ + uint32_t offset; + /* Size of this memory diff region */ + uint32_t size; + /* Actual data */ + char buf[]; +}; + +We have a fixed header at the start and a series of +`mdiff_region' structures following. +\ No newline at end of file