Update to Swift4.1.
@@ -74,8 +74,13 @@ func arrayOfBytes<T>(_ value: T, length: Int? = nil) -> [UInt8] {
return bytes
}
+ #if swift(>=4.1)
+ valuePointer.deinitialize(count: 1)
+ valuePointer.deallocate()
+ #else
valuePointer.deinitialize()
valuePointer.deallocate(capacity: 1)
+ #endif