#include "bspatch.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <stdarg.h>
#include <unistd.h>
#include <arpa/inet.h>
Go to the source code of this file.
|
static unsigned int | crc32 (const unsigned char *buf, unsigned int len) |
|
static void | reporterr (int e, const char *fmt,...) |
|
static void | split (int32_t *I, int32_t *V, int32_t start, int32_t len, int32_t h) |
|
static void | qsufsort (int32_t *I, int32_t *V, unsigned char *old, int32_t oldsize) |
|
static int32_t | matchlen (unsigned char *old, int32_t oldsize, unsigned char *newbuf, int32_t newsize) |
|
static int32_t | search (int32_t *I, unsigned char *old, int32_t oldsize, unsigned char *newbuf, int32_t newsize, int32_t st, int32_t en, int32_t *pos) |
|
int | main (int argc, char *argv[]) |
|
◆ _O_BINARY
◆ MIN
#define MIN |
( |
|
x, |
|
|
|
y |
|
) |
| (((x)<(y)) ? (x) : (y)) |
◆ crc32()
static unsigned int crc32 |
( |
const unsigned char * |
buf, |
|
|
unsigned int |
len |
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 212 of file bsdiff.cxx.
References _O_BINARY, close, crc32(), header, htonl(), i, I, NULL, pos, qsufsort(), reporterr(), search(), V, MBSPatchTriple_::x, MBSPatchTriple_::y, and MBSPatchTriple_::z.
◆ matchlen()
static int32_t matchlen |
( |
unsigned char * |
old, |
|
|
int32_t |
oldsize, |
|
|
unsigned char * |
newbuf, |
|
|
int32_t |
newsize |
|
) |
| |
|
static |
◆ qsufsort()
static void qsufsort |
( |
int32_t * |
I, |
|
|
int32_t * |
V, |
|
|
unsigned char * |
old, |
|
|
int32_t |
oldsize |
|
) |
| |
|
static |
◆ reporterr()
static void reporterr |
( |
int |
e, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
static |
◆ search()
static int32_t search |
( |
int32_t * |
I, |
|
|
unsigned char * |
old, |
|
|
int32_t |
oldsize, |
|
|
unsigned char * |
newbuf, |
|
|
int32_t |
newsize, |
|
|
int32_t |
st, |
|
|
int32_t |
en, |
|
|
int32_t * |
pos |
|
) |
| |
|
static |
◆ split()
static void split |
( |
int32_t * |
I, |
|
|
int32_t * |
V, |
|
|
int32_t |
start, |
|
|
int32_t |
len, |
|
|
int32_t |
h |
|
) |
| |
|
static |
◆ BZ2_crc32Table
unsigned int BZ2_crc32Table[256] |