Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Zlib
提交
dca9e1d6
T
Third Party Zlib
项目概览
OpenHarmony
/
Third Party Zlib
1 年多 前同步成功
通知
16
Star
112
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Zlib
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
dca9e1d6
编写于
5月 26, 2012
作者:
M
Mark Adler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add inflateGetDictionary() function.
上级
eb90f6a5
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
59 addition
and
0 deletion
+59
-0
as400/bndsrc
as400/bndsrc
+1
-0
as400/zlib.inc
as400/zlib.inc
+6
-0
contrib/vstudio/vc10/zlibvc.def
contrib/vstudio/vc10/zlibvc.def
+3
-0
contrib/vstudio/vc9/zlibvc.def
contrib/vstudio/vc9/zlibvc.def
+3
-0
inflate.c
inflate.c
+23
-0
win32/zlib.def
win32/zlib.def
+1
-0
zconf.h
zconf.h
+1
-0
zconf.h.cmakein
zconf.h.cmakein
+1
-0
zconf.h.in
zconf.h.in
+1
-0
zlib.h
zlib.h
+15
-0
zlib.map
zlib.map
+4
-0
未找到文件。
as400/bndsrc
浏览文件 @
dca9e1d6
...
...
@@ -67,6 +67,7 @@ STRPGMEXP PGMLVL(*CURRENT) SIGNATURE('ZLIB')
EXPORT SYMBOL("inflate")
EXPORT SYMBOL("inflateEnd")
EXPORT SYMBOL("inflateSetDictionary")
EXPORT SYMBOL("inflateGetDictionary")
EXPORT SYMBOL("inflateSync")
EXPORT SYMBOL("inflateReset")
EXPORT SYMBOL("inflateInit_")
...
...
as400/zlib.inc
浏览文件 @
dca9e1d6
...
...
@@ -359,6 +359,12 @@
D
dictionary
65535
const
options
(
*
varsize
)
Dictionary
bytes
D
dictLength
10
U
0
value
Dictionary
length
*
D
inflateGetDictionary
...
D
PR
10
I
0
extproc
(
'inflateGetDictionary'
)
Get
dictionary
D
strm
like
(
z_stream
)
Expansion
stream
D
dictionary
65535
options
(
*
varsize
)
Dictionary
bytes
D
dictLength
10
U
0
Dictionary
length
*
D
inflateSync
PR
10
I
0
extproc
(
'inflateSync'
)
Sync
.
expansion
D
strm
like
(
z_stream
)
Expansion
stream
*
...
...
contrib/vstudio/vc10/zlibvc.def
浏览文件 @
dca9e1d6
...
...
@@ -137,3 +137,6 @@ EXPORTS
; zlib1 v1.2.7 added:
gzopen_w @165
; zlib1 v1.2.8 added:
inflateGetDictionary @166
contrib/vstudio/vc9/zlibvc.def
浏览文件 @
dca9e1d6
...
...
@@ -137,3 +137,6 @@ EXPORTS
; zlib1 v1.2.7 added:
gzopen_w @165
; zlib1 v1.2.8 added:
inflateGetDictionary @166
inflate.c
浏览文件 @
dca9e1d6
...
...
@@ -1264,6 +1264,29 @@ z_streamp strm;
return
Z_OK
;
}
int
ZEXPORT
inflateGetDictionary
(
strm
,
dictionary
,
dictLength
)
z_streamp
strm
;
Bytef
*
dictionary
;
uInt
*
dictLength
;
{
struct
inflate_state
FAR
*
state
;
/* check state */
if
(
strm
==
Z_NULL
||
strm
->
state
==
Z_NULL
)
return
Z_STREAM_ERROR
;
state
=
(
struct
inflate_state
FAR
*
)
strm
->
state
;
/* copy dictionary */
if
(
state
->
whave
&&
dictionary
!=
Z_NULL
)
{
zmemcpy
(
dictionary
,
state
->
window
+
state
->
wnext
,
state
->
whave
-
state
->
wnext
);
zmemcpy
(
dictionary
+
state
->
whave
-
state
->
wnext
,
state
->
window
,
state
->
wnext
);
}
if
(
dictLength
!=
Z_NULL
)
*
dictLength
=
state
->
whave
;
return
Z_OK
;
}
int
ZEXPORT
inflateSetDictionary
(
strm
,
dictionary
,
dictLength
)
z_streamp
strm
;
const
Bytef
*
dictionary
;
...
...
win32/zlib.def
浏览文件 @
dca9e1d6
...
...
@@ -17,6 +17,7 @@ EXPORTS
deflatePrime
deflateSetHeader
inflateSetDictionary
inflateGetDictionary
inflateSync
inflateCopy
inflateReset
...
...
zconf.h
浏览文件 @
dca9e1d6
...
...
@@ -103,6 +103,7 @@
# define inflateReset z_inflateReset
# define inflateReset2 z_inflateReset2
# define inflateSetDictionary z_inflateSetDictionary
# define inflateGetDictionary z_inflateGetDictionary
# define inflateSync z_inflateSync
# define inflateSyncPoint z_inflateSyncPoint
# define inflateUndermine z_inflateUndermine
...
...
zconf.h.cmakein
浏览文件 @
dca9e1d6
...
...
@@ -105,6 +105,7 @@
# define inflateReset z_inflateReset
# define inflateReset2 z_inflateReset2
# define inflateSetDictionary z_inflateSetDictionary
# define inflateGetDictionary z_inflateGetDictionary
# define inflateSync z_inflateSync
# define inflateSyncPoint z_inflateSyncPoint
# define inflateUndermine z_inflateUndermine
...
...
zconf.h.in
浏览文件 @
dca9e1d6
...
...
@@ -103,6 +103,7 @@
# define inflateReset z_inflateReset
# define inflateReset2 z_inflateReset2
# define inflateSetDictionary z_inflateSetDictionary
# define inflateGetDictionary z_inflateGetDictionary
# define inflateSync z_inflateSync
# define inflateSyncPoint z_inflateSyncPoint
# define inflateUndermine z_inflateUndermine
...
...
zlib.h
浏览文件 @
dca9e1d6
...
...
@@ -839,6 +839,21 @@ ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
inflate().
*/
ZEXTERN
int
ZEXPORT
inflateGetDictionary
OF
((
z_streamp
strm
,
Bytef
*
dictionary
,
uInt
*
dictLength
));
/*
Returns the sliding dictionary being maintained by inflate. dictLength is
set to the number of bytes in the dictionary, and that many bytes are copied
to dictionary. dictionary must have enough space, where 32768 bytes is
always enough. If inflateGetDictionary() is called with dictionary equal to
Z_NULL, then only the dictionary length is returned, and nothing is copied.
Similary, if dictLength is Z_NULL, then it is not set.
inflateSetDictionary returns Z_OK on success, or Z_STREAM_ERROR if the
stream state is inconsistent.
*/
ZEXTERN
int
ZEXPORT
inflateSync
OF
((
z_streamp
strm
));
/*
Skips invalid compressed data until a possible full flush point (see above
...
...
zlib.map
浏览文件 @
dca9e1d6
...
...
@@ -76,3 +76,7 @@ ZLIB_1.2.5.2 {
gzgetc_;
inflateResetKeep;
} ZLIB_1.2.5.1;
ZLIB_1.2.7.1 {
inflateSetDictionary;
} ZLIB_1.2.7;
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录