Documentation ¶
Overview ¶
Package hash provides hashing utilities used by leveldb.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaskCRC32 ¶
MaskCRC32 return a masked representation of crc.
Motivation: it is problematic to compute the CRC of a string that contains embedded CRCs. Therefore we recommend that CRCs stored somewhere (e.g., in files) should be masked before being stored.
func NewCRC32C ¶
New creates a new hash.Hash32 computing the CRC-32 checksum using Castagnoli's polynomial.
func UnmaskCRC32 ¶
UnmaskCRC32 return the crc whose masked representation is masked_crc.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.