gzread是否修改了输入的buf值?
Does gzread modify the input buf value?
我正在阅读 zlib manual,我想知道 gzread 函数:
ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
这给出了未压缩的字节数,但是这个函数还有什么其他的吗?我怀疑情况是否如此(因为似乎没有指针传递给函数,voidp buf
),但是 gzread 是否也将数据“读”入 voidp buf
?
标准库中是否有 gzread 的类似物(如 gzopen ~ fopen)?
我正在阅读一个名为 klib, and in one of the files (kseq.h, line 91), gzread is called (there it will be called __read
, but I am reading another project, hickit 的项目,它称其为 gzread
),想知道 gzread 是否修改了 buf 值。
是,最多 len
个字节写入 buf
。
我正在阅读 zlib manual,我想知道 gzread 函数:
ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
这给出了未压缩的字节数,但是这个函数还有什么其他的吗?我怀疑情况是否如此(因为似乎没有指针传递给函数,voidp buf
),但是 gzread 是否也将数据“读”入 voidp buf
?
标准库中是否有 gzread 的类似物(如 gzopen ~ fopen)?
我正在阅读一个名为 klib, and in one of the files (kseq.h, line 91), gzread is called (there it will be called __read
, but I am reading another project, hickit 的项目,它称其为 gzread
),想知道 gzread 是否修改了 buf 值。
是,最多 len
个字节写入 buf
。