2 Star 2 Fork 1

觉皇/bsdiff_embeded

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
LzmaUtil.h 773 Bytes
一键复制 编辑 原始数据 按行查看 历史
觉皇 提交于 2023-11-18 09:54 +08:00 . 首次提交
/*
* LzmaUtil.h
*
* Created on: 2023417
* Author: hello
*/
#ifndef LZMAUTIL_H_
#define LZMAUTIL_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include "vfile.h"
#include "LzmaDec.h"
#include "LzmaEnc.h"
typedef struct
{
UInt64 unpacksize;
UInt64 filesize;
CLzmaDec state;
vfile* fp;
}lzma_dec_t;
#define IN_BUF_SIZE (1024)
#define OUT_BUF_SIZE (1024)
int lzma_compress(const char *fnameInput, const char *fnameOutput);
int lzma_uncompress(const char *fnameInput, const char *fnameOutput);
int lzma_uncompress_init(lzma_dec_t* dec, const char* fname);
void lzma_uncompress_destory(lzma_dec_t* dec);
int lzma_uncompress_read(lzma_dec_t* dec, void* buf, uint32_t len);
#ifdef __cplusplus
}
#endif
#endif /* LZMAUTIL_H_ */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/jhembed/bsdiff_embeded.git
git@gitee.com:jhembed/bsdiff_embeded.git
jhembed
bsdiff_embeded
bsdiff_embeded
main

搜索帮助