Method: Zstdlib.crc32_combine
- Defined in:
- ext/zstdlib_c/ruby/zlib-3.3/zstdlib.c
.crc32_combine(crc1, crc2, len2) ⇒ Object
call-seq: Zstdlib.crc32_combine(crc1, crc2, len2)
Combine two CRC-32 check values in to one. +crc1+ is the first CRC-32 value, +crc2+ is the second CRC-32 value. +len2+ is the length of the string used to generate +crc2+.
537 538 539 540 541 542 |
# File 'ext/zstdlib_c/ruby/zlib-3.3/zstdlib.c', line 537 static VALUE rb_zlib_crc32_combine(VALUE klass, VALUE crc1, VALUE crc2, VALUE len2) { return ULONG2NUM( crc32_combine(NUM2ULONG(crc1), NUM2ULONG(crc2), NUM2LONG(len2))); } |