Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
957 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. // Serialization/unserialization buffer
  8. //=============================================================================//
  9. #ifndef DIFF_H
  10. #define DIFF_H
  11. #pragma once
  12. int FindDiffs(uint8 const *NewBlock, uint8 const *OldBlock,
  13. int NewSize, int OldSize, int &DiffListSize,uint8 *Output,uint32 OutSize);
  14. int FindDiffsForLargeFiles(uint8 const *NewBlock, uint8 const *OldBlock,
  15. int NewSize, int OldSize, int &DiffListSize,uint8 *Output,
  16. uint32 OutSize,
  17. int hashsize=65536);
  18. void ApplyDiffs(uint8 const *OldBlock, uint8 const *DiffList,
  19. int OldSize, int DiffListSize, int &ResultListSize,uint8 *Output,uint32 OutSize);
  20. int FindDiffsLowMemory(uint8 const *NewBlock, uint8 const *OldBlock,
  21. int NewSize, int OldSize, int &DiffListSize,uint8 *Output,uint32 OutSize);
  22. #endif