⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄

📁 厦新 E8手机 ROM 编辑工具源码 编译平台Delphi7
💻
字号:
DWORD CECompress(LPBYTE  lpbSrc, DWORD cbSrc, LPBYTE lpbDest, DWORD cbDest, WORD wStep, DWORD dwPagesize);


DWORD outlength= inlength-1;
BYTE *outdata= malloc(outlength);
res= CECompress(indata, inlength, outdata, outlength, 1, 4096);
if (res==0xFFFFFFFF) {
   free(outdata);
   // data does not become shorter when compressed
   return NULL;
}
else {
   return outdata;


the outlength being 1 shorter, ensures that it only compresses when the result is shorter.

http://www.spv-developers.com/forum/showthread.php?p=2183

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -