Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: courgette/third_party/bsdiff.h

Issue 115435: Store 'diff' bytes by run-length encoding zeros.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « courgette/courgette.h ('k') | courgette/third_party/bsdiff_apply.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*- 1 /*-
2 * Copyright 2003,2004 Colin Percival 2 * Copyright 2003,2004 Colin Percival
3 * All rights reserved 3 * All rights reserved
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted providing that the following conditions 6 * modification, are permitted providing that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // The following declarations are common to the patch-creation and 68 // The following declarations are common to the patch-creation and
69 // patch-application code. 69 // patch-application code.
70 70
71 // The patch stream starts with a MBSPatchHeader. 71 // The patch stream starts with a MBSPatchHeader.
72 typedef struct MBSPatchHeader_ { 72 typedef struct MBSPatchHeader_ {
73 char tag[8]; // Contains MBS_PATCH_HEADER_TAG 73 char tag[8]; // Contains MBS_PATCH_HEADER_TAG
74 uint32 slen; // Length of the file to be patched. 74 uint32 slen; // Length of the file to be patched.
75 uint32 scrc32; // CRC32 of the file to be patched. 75 uint32 scrc32; // CRC32 of the file to be patched.
76 uint32 dlen; // Length of the result file. 76 uint32 dlen; // Length of the result file.
77 uint32 cblen; // Length of the control block in bytes.
78 uint32 difflen; // Length of the diff block in bytes.
79 uint32 extralen; // Length of the extra block in bytes.
80 } MBSPatchHeader; 77 } MBSPatchHeader;
81 78
82 // This is the value for the tag field. Must match length exactly, not counting 79 // This is the value for the tag field. Must match length exactly, not counting
83 // null at end of string. 80 // null at end of string.
84 #define MBS_PATCH_HEADER_TAG "GBSDIF42" 81 #define MBS_PATCH_HEADER_TAG "GBSDIF42"
85 82
86 } // namespace 83 } // namespace
87 #endif // COURGETTE_BSDIFF_H_ 84 #endif // COURGETTE_BSDIFF_H_
OLDNEW
« no previous file with comments | « courgette/courgette.h ('k') | courgette/third_party/bsdiff_apply.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698