crcsquared

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRC32CChecksum

func CRC32CChecksum(data []byte) uint32

CRC32CChecksum computes the crc32c checksum of some data

func ParallelCRC32CChecksum

func ParallelCRC32CChecksum(readerAt io.ReaderAt, length int64, opts ParallelChecksumOptions) (uint32, error)

ParallelCRC32CChecksum computes the crc32c checksum for a readerAt using parallelism

func ParallelCRC32CChecksumFile

func ParallelCRC32CChecksumFile(filepath string, opts ParallelChecksumFileOptions) (uint32, error)

ParallelCRC32CChecksumFile is a convenience function that opens a file and computes the crc32c checksum with ParallelCRC32CChecksum

Types

type ParallelChecksumFileOptions

type ParallelChecksumFileOptions struct {
	Concurrency int
	PartSize    int64
	Mmap        bool
}

ParallelChecksumFileOptions are the options for running a parallelized checksum on a file

type ParallelChecksumOptions

type ParallelChecksumOptions struct {
	Concurrency int
	PartSize    int64
}

ParallelChecksumOptions are the options for running a parallelized checksum

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL