2
0
Эх сурвалжийг харах

Conforms to ExpressibleByArrayLiteral

Marcin Krzyżanowski 9 жил өмнө
parent
commit
7183233c49

+ 6 - 0
Sources/CryptoSwift/SecureBytes.swift

@@ -60,3 +60,9 @@ extension SecureBytes: Collection {
         return self.bytes.index(after: i)
     }
 }
+
+extension SecureBytes: ExpressibleByArrayLiteral {
+    public convenience init(arrayLiteral elements: UInt8...) {
+        self.init(bytes: elements)
+    }
+}