请帮我翻译如下一段英文,100分答谢!
int deflate (z_streamp strm, int flush);
deflate compresses as much data as possible, and stops when the input buffer becomes empty or the output buffer becomes full. It may introduce some output latency (reading input without producing any output) except when forced to flush.
The detailed semantics are as follows. deflate performs one or both of the following actions:
Compress more input starting at next_in and update next_in and avail_in accordingly. If not all input can be processed (because there is not enough room in the output buffer), next_in and avail_in are updated and processing will resume at this point for the next call of deflate().
Provide more output starting at next_out and update next_out and avail_out accordingly. This action is forced if the parameter flush is non zero. Forcing flush frequently degrades the compression ratio, so this parameter should be set only when necessary (in interactive applications). Some output may be provided even if flush is not set.
问题点数:100、回复次数:8Top
1 楼hzlan(^只有你能帮到我^)回复于 2003-11-03 12:07:14 得分 1
不会english,帮你UPTop
2 楼Tz520(『霣·魔鞨』)回复于 2003-11-03 13:28:34 得分 1
只看得懂第一句,顶先~~Top
3 楼2000mylove(nothing)回复于 2003-11-03 14:22:59 得分 98
deflate将压缩尽可能多的数据,当输入缓冲区变空或者输出缓冲区占满时停止。它可能在输出上会出现延迟,除非你手动清空。
逐句解释如下。deflate将执行以下动作中的一个或者全部:
从next_in开始压缩更多的输入从而next_in和avail_in都得到更新。如果全部输入不能被完全处理掉,那么next_in和avail_in将会被更新,执行进程将会在deflate()下次调用时从这里重新开始。
从next_out开始提供更多的输出从而next_out和avail_out也得到更新。假如flush参数不为零,这个动作将强制执行。
频繁的强制清空动作将会降低压缩比率,所以这个参数只有在必要的时候才进行设置(在有交互动作的程序里面)。即使是没有设置flush参数一些输出量也会提供。Top
4 楼2000mylove(nothing)回复于 2003-11-03 14:25:27 得分 0
楼主如果能提供一些相关的上下文帮助也许更有利于文章的翻译
例如文章的出处,功用什么的
大家还可以互相学习
这样容易产生歧义Top
5 楼mibo2(puppet)回复于 2003-11-04 09:00:40 得分 0
谢谢 2000mylove(杨晨),我现在看的资料是关于压缩和解压缩的文档,是C++语言的。我觉得你翻译的很好,有几个地方我看了之后才茅塞顿开。谢谢!Top
6 楼2000mylove(nothing)回复于 2003-11-04 11:08:05 得分 0
呵呵
不客气啊
大家互相学习啦!Top
7 楼mibo2(puppet)回复于 2003-11-04 11:19:02 得分 0
2000mylove(杨晨):
我现在需要你的帮助啊!!!Top
8 楼2000mylove(nothing)回复于 2003-11-04 11:19:45 得分 0
老兄
我看到你的短消息了
可惜我不知道怎么回复
只好在这里给你回了
我没有MSN的地址
只有QQ:85652551 MyHeart
我的短消息不能回Top




