Enumerations | Functions
bspatch.c File Reference
#include "bspatch.h"
#include <bzlib.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for bspatch.c:

Go to the source code of this file.

Enumerations

enum  block_type { CONTROL_BLOCK = 0, DIFF_BLOCK, EXTRA_BLOCK, NUM_BLOCKS }
 

Functions

int bspatch_mem (const uint8_t *oldfile_bin, const int64_t oldfile_size, const uint8_t *patchfile_bin, const int64_t patchfile_size, uint8_t *newfile_bin)
 
int64_t bspatch_mem_get_newsize (const uint8_t *patchfile_bin, const int64_t patchfile_size)
 
static int64_t offtin (const uint8_t *buf)
 

Enumeration Type Documentation

◆ block_type

enum block_type
Enumerator
CONTROL_BLOCK 
DIFF_BLOCK 
EXTRA_BLOCK 
NUM_BLOCKS 

Definition at line 34 of file bspatch.c.

Function Documentation

◆ bspatch_mem()

int bspatch_mem ( const uint8_t *  oldfile_bin,
const int64_t  oldfile_size,
const uint8_t *  patchfile_bin,
const int64_t  patchfile_size,
uint8_t *  newfile_bin 
)

Definition at line 75 of file bspatch.c.

◆ bspatch_mem_get_newsize()

int64_t bspatch_mem_get_newsize ( const uint8_t *  patchfile_bin,
const int64_t  patchfile_size 
)

Definition at line 60 of file bspatch.c.

◆ offtin()

static int64_t offtin ( const uint8_t *  buf)
static

Definition at line 36 of file bspatch.c.



depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19