Cyclic Redundancy Check with CPU-Specific Acceleration

Hardware-based support for 'CRC32C' cyclic redundancy checksum function is made available for 'x86_64' systems with 'SSE2' support as well as for 'arm64', and detected at build-time via 'cmake' with a software-based fallback. This functionality is exported at the 'C'-language level for use by other packages. 'CRC32C' is described in 'RFC 3270' at < https://datatracker.ietf.org/doc/html/rfc3720> and is based on 'Castagnoli et al' .


crc32c: R Bindings for the CRC32C Library

CI License CRAN Dependencies Last Commit

Motivation

CRC32C is a cyclic redundancy check (with parity) implementation based on work by Castagnoli, Brauer, and Hermann that is provided by Google in a repository with optional hardware-acceleration selected at run-time. It is included (minus the parts for logging, testing and benchmarking we would not use from R) 'as is' in the package at src/crc32c/.

This project provides it for use by R. We also aim for this to be an example of how a standalone cmake project providing a library can be offered via an R package for use by R as well as by other R packages.

Usage

The package provides a function direct callable from R.

The package also exports three C-level functions that can be called directly from other R packages by means of a mechanism described in Writing R Extensions.

Authors

For CRC32C itself see the included AUTHORS file file.

For the R package integration and maintenance, Dirk Eddelbuettel

License

For CRCR32C itself see the included LICENSE file file.

The R package integrations is licensed under GPL (>= 2) just like R itself.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("crc32c")

0.0.3 by Dirk Eddelbuettel, 2 years ago


https://github.com/google/crc32c, https://github.com/eddelbuettel/crc32c


Report a bug at https://github.com/eddelbuettel/crc32c/issues


Browse source code at https://github.com/cran/crc32c


Authors: Dirk Eddelbuettel [aut, cre] , The CRC32C Authors [aut] (See file src/crc32c/AUTHORS)


Documentation:   PDF Manual  


GPL (>= 2) license


Linking to tidyCpp

System requirements: cmake


See at CRAN