Structureswift-hash 0.7.1CRC
CRC32
The value of a CRC32 checksum.
@frozen struct CRC32
The value of a CRC32 checksum.
@frozen struct CRC32
import CRC
protocol BitwiseCopyable
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol ExpressibleByIntegerLiteral
A type that can be initialized with an integer literal.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init(checksum: UInt32 = 0)
Creates a new checksum with the specified value.
init(hashing message: borrowing some Sequence<UInt8>)
Computes the checksum of the provided message.
init(integerLiteral: UInt32)
static let table: [UInt32]
var checksum: UInt32
The checksum value as a 32-bit unsigned integer.
var description: String { get }
The lowercased hexadecimal representation of the checksum value.
mutating func update(with message: borrowing some Sequence<UInt8>)
Updates the checksum by hashing the provided message into the existing checksum.
func updated(with message: borrowing some Sequence<UInt8>) -> CRC32
Returns a new checksum by hashing the provided message into the current checksum.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.