|
static uint8_t | bps_read (struct bps_data *bps) |
|
static uint64_t | bps_decode (struct bps_data *bps) |
|
static void | bps_write (struct bps_data *bps, uint8_t data) |
|
static enum patch_error | bps_apply_patch (const uint8_t *modify_data, uint64_t modify_length, const uint8_t *source_data, uint64_t source_length, uint8_t *target_data, uint64_t *target_length) |
|
static uint8_t | ups_patch_read (struct ups_data *data) |
|
static uint8_t | ups_source_read (struct ups_data *data) |
|
static void | ups_target_write (struct ups_data *data, uint8_t n) |
|
static uint64_t | ups_decode (struct ups_data *data) |
|
static enum patch_error | ups_apply_patch (const uint8_t *patchdata, uint64_t patchlength, const uint8_t *sourcedata, uint64_t sourcelength, uint8_t *targetdata, uint64_t *targetlength) |
|
static enum patch_error | ips_apply_patch (const uint8_t *patchdata, uint64_t patchlen, const uint8_t *sourcedata, uint64_t sourcelength, uint8_t *targetdata, uint64_t *targetlength) |
|
static bool | apply_patch_content (uint8_t **buf, ssize_t *size, const char *patch_desc, const char *patch_path, patch_func_t func, void *patch_data, int64_t patch_size) |
|
static bool | try_bps_patch (bool allow_bps, const char *name_bps, uint8_t **buf, ssize_t *size) |
|
static bool | try_ups_patch (bool allow_ups, const char *name_ups, uint8_t **buf, ssize_t *size) |
|
static bool | try_ips_patch (bool allow_ips, const char *name_ips, uint8_t **buf, ssize_t *size) |
|
static void | patch_content (bool is_ips_pref, bool is_bps_pref, bool is_ups_pref, const char *name_ips, const char *name_bps, const char *name_ups, uint8_t **buf, void *data) |
|