This function can be installed both in memory and file streams when checksum * computation is needed. */
| 429 | /* This function can be installed both in memory and file streams when checksum |
| 430 | * computation is needed. */ |
| 431 | void rioGenericUpdateChecksum(rio *r, const void *buf, size_t len) { |
| 432 | r->cksum = crc64(r->cksum,(const unsigned char*)buf,len); |
| 433 | } |
| 434 | |
| 435 | /* Set the file-based rio object to auto-fsync every 'bytes' file written. |
| 436 | * By default this is set to zero that means no automatic file sync is |
no test coverage detected