Переглянути джерело

Add missing defaul implementation

Marcin Krzyzanowski 7 роки тому
батько
коміт
d0b776d4c2
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      Sources/CryptoSwift/Updatable.swift

+ 4 - 0
Sources/CryptoSwift/Updatable.swift

@@ -41,6 +41,10 @@ extension Updatable {
         }
     }
 
+    public mutating func update(withBytes bytes: ArraySlice<UInt8>, isLast: Bool = false) throws -> Array<UInt8> {
+        return try update(withBytes: bytes, isLast: isLast)
+    }
+
     public mutating func update(withBytes bytes: Array<UInt8>, isLast: Bool = false) throws -> Array<UInt8> {
         return try update(withBytes: bytes.slice, isLast: isLast)
     }