Project

General

Profile

Misc #9307 ยป add_expression_zlib_adler32.patch

vajrasky (Vajrasky Kok), 12/27/2013 04:44 PM

View differences:

ext/zlib/zlib.c (working copy)
* +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)
    (1-1/1)