CRC16
final public class CRC16
extension CRC16: Equatable
extension CRC16: Hashable
FIT 16bit CRC
-
Undocumented
Declaration
Swift
public init()
-
Undocumented
Declaration
Swift
public convenience init(data: Data)
-
Returns a Boolean value indicating whether two values are equal.
Equality is the inverse of inequality. For any values
a
andb
,a == b
implies thata != b
isfalse
.Declaration
Swift
public static func == (lhs: CRC16, rhs: CRC16) -> Bool
Parameters
lhs
A value to compare.
rhs
Another value to compare.
-
Hashes the essential components of this value by feeding them into the given hasher.
Implement this method to conform to the
Hashable
protocol. The components used for hashing must be the same as the components compared in your type’s==
operator implementation. Callhasher.combine(_:)
with each of these components.Important
Never call
finalize()
onhasher
. Doing so may become a compile-time error in the future.Declaration
Swift
public func hash(into hasher: inout Hasher)
Parameters
hasher
The hasher to use when combining the components of this instance.