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 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #include "courgette/third_party/bsdiff.h" | 25 #include "courgette/third_party/bsdiff.h" |
26 | 26 |
27 #include <stdlib.h> | 27 #include <stdlib.h> |
28 #include <algorithm> | 28 #include <algorithm> |
29 | 29 |
30 #include "base/logging.h" | 30 #include "base/logging.h" |
31 #include "base/memory/scoped_ptr.h" | 31 #include "base/memory/scoped_ptr.h" |
32 #include "base/strings/string_util.h" | 32 #include "base/strings/string_util.h" |
33 #include "base/time.h" | 33 #include "base/time/time.h" |
34 | 34 |
35 #include "courgette/crc.h" | 35 #include "courgette/crc.h" |
36 #include "courgette/streams.h" | 36 #include "courgette/streams.h" |
37 #include "courgette/third_party/paged_array.h" | 37 #include "courgette/third_party/paged_array.h" |
38 | 38 |
39 namespace courgette { | 39 namespace courgette { |
40 | 40 |
41 // ------------------------------------------------------------------------ | 41 // ------------------------------------------------------------------------ |
42 // | 42 // |
43 // The following code is taken verbatim from 'bsdiff.c'. Please keep all the | 43 // The following code is taken verbatim from 'bsdiff.c'. Please keep all the |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 << " extra bytes: " << extra_bytes_length | 445 << " extra bytes: " << extra_bytes_length |
446 << "\nUncompressed bsdiff patch size " | 446 << "\nUncompressed bsdiff patch size " |
447 << patch_stream->Length() - initial_patch_stream_length | 447 << patch_stream->Length() - initial_patch_stream_length |
448 << "\nEnd bsdiff " | 448 << "\nEnd bsdiff " |
449 << (base::Time::Now() - start_bsdiff_time).InSecondsF(); | 449 << (base::Time::Now() - start_bsdiff_time).InSecondsF(); |
450 | 450 |
451 return OK; | 451 return OK; |
452 } | 452 } |
453 | 453 |
454 } // namespace | 454 } // namespace |
OLD | NEW |