File: Delta.h

package info (click to toggle)
7zip-rar 25.00%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: trixie
  • size: 13,432 kB
  • sloc: cpp: 212,215; ansic: 39,747; asm: 4,987; makefile: 2,125
file content (19 lines) | stat: -rwxr-xr-x 409 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Delta.h -- Delta converter
2023-03-03 : Igor Pavlov : Public domain */

#ifndef ZIP7_INC_DELTA_H
#define ZIP7_INC_DELTA_H

#include "7zTypes.h"

EXTERN_C_BEGIN

#define DELTA_STATE_SIZE 256

void Delta_Init(Byte *state);
void Delta_Encode(Byte *state, unsigned delta, Byte *data, SizeT size);
void Delta_Decode(Byte *state, unsigned delta, Byte *data, SizeT size);

EXTERN_C_END

#endif