crc

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IEEE32       Crc32 = crc32I{_IEEE32}
	Castagnoli32 Crc32 = crc32I{_Castagnoli32}
	Koopman32    Crc32 = crc32I{_Koopman32}

	ISO64  Crc64 = crc64I{_ISO64}
	ECMA64 Crc64 = crc64I{_ECMA64}
)
View Source
var (
	ErrCrcCheckFailed = errors.New("crc check failed")
)

Functions

This section is empty.

Types

type Crc32

type Crc32 interface {
	Sum(data []byte) uint32
	Update(crc uint32, data []byte) uint32
}

Crc32 generate 32-bit CRC sum

type Crc64

type Crc64 interface {
	Sum(data []byte) uint64
	Update(crc uint64, data []byte) uint64
}

Jump to

Keyboard shortcuts

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