simple_delta.h 686 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2009 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // Byte level differential compression algorithm used by Courgette.
  5. #ifndef COURGETTE_SIMPLE_DELTA_H_
  6. #define COURGETTE_SIMPLE_DELTA_H_
  7. #include "courgette/courgette.h"
  8. #include "courgette/streams.h"
  9. namespace courgette {
  10. Status ApplySimpleDelta(SourceStream* old, SourceStream* delta,
  11. SinkStream* target);
  12. Status GenerateSimpleDelta(SourceStream* old, SourceStream* target,
  13. SinkStream* delta);
  14. } // namespace courgette
  15. #endif // COURGETTE_SIMPLE_DELTA_H_