зеркало из https://github.com/github/ruby.git
* ext/zlib/zlib.c (rb_zlib_adler32): [DOC] Add example for adler32
Patch by Vajrasky Kok [Bug #9307] [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
628f75b752
Коммит
5d83f5554f
|
@ -1,3 +1,8 @@
|
|||
Tue Jan 28 15:12:22 2014 Zachary Scott <e@zzak.io>
|
||||
|
||||
* ext/zlib/zlib.c (rb_zlib_adler32): [DOC] Add example for adler32
|
||||
Patch by Vajrasky Kok [Bug #9307] [ci skip]
|
||||
|
||||
Tue Jan 28 08:56:00 2014 Charlie Somerville <charliesome@ruby-lang.org>
|
||||
|
||||
* compile.c (iseq_build_from_ary_body): Use :blockptr instead of :block
|
||||
|
|
|
@ -429,7 +429,14 @@ do_checksum(argc, argv, func)
|
|||
* +adler+. If +string+ is omitted, it returns the Adler-32 initial value. If
|
||||
* +adler+ is omitted, it assumes that the initial value is given to +adler+.
|
||||
*
|
||||
* FIXME: expression.
|
||||
* Example usage:
|
||||
*
|
||||
* require "zlib"
|
||||
*
|
||||
* data = "foo"
|
||||
* puts "Adler32 checksum: #{Zlib.adler32(data).to_s(16)}"
|
||||
* #=> Adler32 checksum: 2820145
|
||||
*
|
||||
*/
|
||||
static VALUE
|
||||
rb_zlib_adler32(int argc, VALUE *argv, VALUE klass)
|
||||
|
|
Загрузка…
Ссылка в новой задаче