Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gzip.crc

Extract the CRC (32 bit hash) of a gzip file


Description

Reads the crc from a gzip file, assuming it is the last 4 bytes of the file. First checks for a valid gzip magic number at the start of the file.

Usage

gzip.crc(f)

Arguments

f

Path to a gzip file

Details

CRC32 is not a strong hash like SHA1 or even MD5, but it does provide a basic hash of the uncompressed contents of the gzip file. NB CRCs are stored in little endian byte order regardless of platform.

Value

hexadecimal formatted

Examples

rdsfile=system.file('help/aliases.rds')
gzip.crc(rdsfile)

nat.utils

File System Utility Functions for 'NeuroAnatomy Toolbox'

v0.5.1
GPL-3
Authors
Gregory Jefferis
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.