package crc

import "go.etcd.io/etcd/pkg/v3/crc"

Package crc provides utility function for cyclic redundancy check algorithms.

Index

Constants

const Size = 4

The size of a CRC-32 checksum in bytes.

Functions

func New

func New(prev uint32, tab *crc32.Table) hash.Hash32

New creates a new hash.Hash32 computing the CRC-32 checksum using the polynomial represented by the Table. Modified by xiangli to take a prevcrc.

Source Files

crc.go

Version
v3.5.18 (latest)
Published
Jan 24, 2025
Platform
linux/amd64
Imports
2 packages
Last checked
6 days ago

Tools for package owners.