Method: Zstdlib.crc32
- Defined in:
- ext/zstdlib_c/ruby/zlib-3.3/zstdlib.c
.crc32(*args) ⇒ Object
call-seq: Zstdlib.crc32(string, crc)
Calculates CRC checksum for +string+, and returns updated value of +crc+. If +string+ is omitted, it returns the CRC initial value. If +crc+ is omitted, it assumes that the initial value is given to +crc+. If +string+ is an IO instance, reads from the IO until the IO returns nil and returns CRC checksum of all read data.
FIXME: expression.
520 521 522 523 524 |
# File 'ext/zstdlib_c/ruby/zlib-3.3/zstdlib.c', line 520 static VALUE rb_zlib_crc32(int argc, VALUE *argv, VALUE klass) { return do_checksum(argc, argv, crc32); } |