2024-03-18 17:06:56 +03:00
|
|
|
//========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
|
2010-07-22 01:46:14 -05:00
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
// $NoKeywords: $
|
|
|
|
//
|
|
|
|
// Serialization/unserialization buffer
|
|
|
|
//=============================================================================//
|
|
|
|
|
|
|
|
#ifndef DIFF_H
|
|
|
|
#define DIFF_H
|
2024-03-18 17:06:56 +03:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
2010-07-22 01:46:14 -05:00
|
|
|
#pragma once
|
2024-03-18 17:06:56 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "platform.h"
|
2010-07-22 01:46:14 -05:00
|
|
|
|
2024-03-18 17:06:56 +03:00
|
|
|
PLATFORM_INTERFACE int FindDiffs(uint8 const *NewBlock, uint8 const *OldBlock,
|
2010-07-22 01:46:14 -05:00
|
|
|
int NewSize, int OldSize, int &DiffListSize,uint8 *Output,uint32 OutSize);
|
|
|
|
|
2024-03-18 17:06:56 +03:00
|
|
|
PLATFORM_INTERFACE int FindDiffsForLargeFiles(uint8 const *NewBlock, uint8 const *OldBlock,
|
2010-07-22 01:46:14 -05:00
|
|
|
int NewSize, int OldSize, int &DiffListSize,uint8 *Output,
|
|
|
|
uint32 OutSize,
|
|
|
|
int hashsize=65536);
|
|
|
|
|
2024-03-18 17:06:56 +03:00
|
|
|
PLATFORM_INTERFACE void ApplyDiffs(uint8 const *OldBlock, uint8 const *DiffList,
|
2010-07-22 01:46:14 -05:00
|
|
|
int OldSize, int DiffListSize, int &ResultListSize,uint8 *Output,uint32 OutSize);
|
|
|
|
|
2024-03-18 17:06:56 +03:00
|
|
|
PLATFORM_INTERFACE int FindDiffsLowMemory(uint8 const *NewBlock, uint8 const *OldBlock,
|
2010-07-22 01:46:14 -05:00
|
|
|
int NewSize, int OldSize, int &DiffListSize,uint8 *Output,uint32 OutSize);
|
|
|
|
|
2024-03-18 17:06:56 +03:00
|
|
|
#endif // DIFF_H
|