diff --git a/README.md b/README.md index f6a91fd..28d82e0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # [HPatchLite](https://github.com/sisong/HPatchLite) -[![release](https://img.shields.io/badge/release-v0.4.1-blue.svg)](https://github.com/sisong/HPatchLite/releases) +[![release](https://img.shields.io/badge/release-v0.4.2-blue.svg)](https://github.com/sisong/HPatchLite/releases) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sisong/HPatchLite/blob/main/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](https://github.com/sisong/HPatchLite/pulls) [![+issue Welcome](https://img.shields.io/github/issues-raw/sisong/HPatchLite?color=green&label=%2Bissue%20welcome)](https://github.com/sisong/HPatchLite/issues) @@ -10,9 +10,9 @@ HPatchLite is a lite version of [HDiffPatch](https://github.com/sisong/HDiffPatch), tiny code & ram requirements when patch on MCU,NB-IoT,... -The patch code(ROM occupancy) very small, compiled by Mbed Studio is 664 bytes. -Tip: if define _IS_RUN_MEM_SAFE_CHECK=0 can reduce 74 bytes; -if used tinyuz & define _IS_USED_SHARE_hpatch_lite_types=1, can reduce 52 bytes. +The patch code(ROM occupancy) very small, compiled by Mbed Studio is 670 bytes. +Tip: if used tinyuz & define _IS_USED_SHARE_hpatch_lite_types=1, can reduce 52 bytes; +if define _IS_RUN_MEM_SAFE_CHECK=0, can reduce 74 bytes. At the same time, the patch memory(RAM occupancy) can also be very small, RAM size = one decompress memory size + input cache size(>=3Byte) when patch. diff --git a/README_cn.md b/README_cn.md index 04b30fd..351c3d9 100644 --- a/README_cn.md +++ b/README_cn.md @@ -1,5 +1,5 @@ # [HPatchLite](https://github.com/sisong/HPatchLite) -[![release](https://img.shields.io/badge/release-v0.4.1-blue.svg)](https://github.com/sisong/HPatchLite/releases) +[![release](https://img.shields.io/badge/release-v0.4.2-blue.svg)](https://github.com/sisong/HPatchLite/releases) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sisong/HPatchLite/blob/main/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](https://github.com/sisong/HPatchLite/pulls) [![+issue Welcome](https://img.shields.io/github/issues-raw/sisong/HPatchLite?color=green&label=%2Bissue%20welcome)](https://github.com/sisong/HPatchLite/issues) @@ -10,9 +10,9 @@ HPatchLite 是 [HDiffPatch](https://github.com/sisong/HDiffPatch) 的一个精简(Lite)版,为在MCU、NB-IoT等小型设备上执行打补丁(patch)功能而优化。 -编译后的patch代码(ROM 占用)非常的小,用 Mbed Studio 编译后为 664 字节。 -提示:设置宏_IS_RUN_MEM_SAFE_CHECK=0可以节省74字节; -如果使用了tinyuz并且设置宏_IS_USED_SHARE_hpatch_lite_types=1,可以节省52字节。 +编译后的patch代码(ROM 占用)非常的小,用 Mbed Studio 编译后为 670 字节。 +提示:如果使用了tinyuz并且设置宏_IS_USED_SHARE_hpatch_lite_types=1,可以节省52字节; +设置宏_IS_RUN_MEM_SAFE_CHECK=0,可以节省74字节。 同时,patch时内存(RAM 占用)也可以非常的小, 大小为 一个解压缩流需要的内存大小 + patch时输入的缓存区大小(>=3Byte)。 diff --git a/hdiffi_import_patch.h b/hdiffi_import_patch.h index 0e81e77..8d100b6 100644 --- a/hdiffi_import_patch.h +++ b/hdiffi_import_patch.h @@ -13,7 +13,7 @@ extern "C" { #endif #define HPATCHLITE_VERSION_MAJOR 0 #define HPATCHLITE_VERSION_MINOR 4 -#define HPATCHLITE_VERSION_RELEASE 1 +#define HPATCHLITE_VERSION_RELEASE 2 #define _HPATCHLITE_VERSION HPATCHLITE_VERSION_MAJOR.HPATCHLITE_VERSION_MINOR.HPATCHLITE_VERSION_RELEASE #define _HDIFFPATCH_QUOTE(str) #str