This repository has been archived on 2024-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-04 13:13:01 -04:00

30 lines
1.0 KiB
C

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
// Serialization/unserialization buffer
//=============================================================================//
#ifndef DIFF_H
#define DIFF_H
#pragma once
int FindDiffs(uint8 const *NewBlock, uint8 const *OldBlock, int NewSize,
int OldSize, int &DiffListSize, uint8 *Output, uint32 OutSize);
int FindDiffsForLargeFiles(uint8 const *NewBlock, uint8 const *OldBlock,
int NewSize, int OldSize, int &DiffListSize,
uint8 *Output, uint32 OutSize, int hashsize = 65536);
void ApplyDiffs(uint8 const *OldBlock, uint8 const *DiffList, int OldSize,
int DiffListSize, int &ResultListSize, uint8 *Output,
uint32 OutSize);
int FindDiffsLowMemory(uint8 const *NewBlock, uint8 const *OldBlock,
int NewSize, int OldSize, int &DiffListSize,
uint8 *Output, uint32 OutSize);
#endif