OLD | NEW |
1 /* | 1 /* |
2 bsdiff.c -- Binary patch generator. | 2 bsdiff.c -- Binary patch generator. |
3 | 3 |
4 Copyright 2003 Colin Percival | 4 Copyright 2003 Colin Percival |
5 | 5 |
6 For the terms under which this work may be distributed, please see | 6 For the terms under which this work may be distributed, please see |
7 the adjoining file "LICENSE". | 7 the adjoining file "LICENSE". |
8 | 8 |
9 ChangeLog: | 9 ChangeLog: |
10 2005-05-05 - Use the modified header struct from bspatch.h; use 32-bit | 10 2005-05-05 - Use the modified header struct from bspatch.h; use 32-bit |
(...skipping 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 | 28 |
29 #include "courgette/third_party/bsdiff.h" | 29 #include "courgette/third_party/bsdiff.h" |
30 | 30 |
31 #include <stddef.h> | 31 #include <stddef.h> |
32 #include <stdint.h> | 32 #include <stdint.h> |
33 #include <stdlib.h> | 33 #include <stdlib.h> |
34 #include <algorithm> | 34 #include <algorithm> |
35 | 35 |
36 #include "base/logging.h" | 36 #include "base/logging.h" |
37 #include "base/memory/scoped_ptr.h" | |
38 #include "base/strings/string_util.h" | 37 #include "base/strings/string_util.h" |
39 #include "base/time/time.h" | 38 #include "base/time/time.h" |
40 | 39 |
41 #include "courgette/crc.h" | 40 #include "courgette/crc.h" |
42 #include "courgette/streams.h" | 41 #include "courgette/streams.h" |
43 #include "courgette/third_party/paged_array.h" | 42 #include "courgette/third_party/paged_array.h" |
44 #include "courgette/third_party/qsufsort.h" | 43 #include "courgette/third_party/qsufsort.h" |
45 | 44 |
46 namespace courgette { | 45 namespace courgette { |
47 | 46 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 << " extra bytes: " << extra_bytes_length | 297 << " extra bytes: " << extra_bytes_length |
299 << "\nUncompressed bsdiff patch size " | 298 << "\nUncompressed bsdiff patch size " |
300 << patch_stream->Length() - initial_patch_stream_length | 299 << patch_stream->Length() - initial_patch_stream_length |
301 << "\nEnd bsdiff " | 300 << "\nEnd bsdiff " |
302 << (base::Time::Now() - start_bsdiff_time).InSecondsF(); | 301 << (base::Time::Now() - start_bsdiff_time).InSecondsF(); |
303 | 302 |
304 return OK; | 303 return OK; |
305 } | 304 } |
306 | 305 |
307 } // namespace courgette | 306 } // namespace courgette |
OLD | NEW |