SwiftstructReplicatorEngine

struct ReplicatorEngine.UniformHasher

Members 7

  1. funcstatic hash<A where A: Encodable>(A) throws -> Foundation.UUID
  2. funcstatic hash<A where A: NSSecureCoding, A: NSObject>(A) throws -> Foundation.UUID
  3. fieldvar hasher: CryptoKit.SHA256
  4. funccombine<A where A: Encodable>(A) throws -> ()
  5. funccombine<A where A: NSSecureCoding, A: NSObject>(A) throws -> ()
  6. funcfinalize() -> Foundation.UUID
  7. initinit() -> ReplicatorEngine.UniformHasher
struct UniformHasher {
    var hasher: CryptoKit.SHA256

    init()

    func combine<A>(_: A) throws where A: Swift.Encodable
    func combine<A>(_: A) throws where A: __C.NSSecureCoding, A: __C.NSObject
    func finalize() -> Foundation.UUID

    static func hash<A>(_: A) throws -> Foundation.UUID where A: Swift.Encodable
    static func hash<A>(_: A) throws -> Foundation.UUID where A: __C.NSSecureCoding, A: __C.NSObject
}