mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Prefer Data over NSData
This commit is contained in:
1 parent
3f61908e7e
commit
91e1ca4bae
1 file changed
+1
-1
@@ -17,7 +17,7 @@ extension NSUUID: DatabaseValueConvertible {
|
||||
var uuidBytes = ContiguousArray(repeating: UInt8(0), count: 16)
|
||||
return uuidBytes.withUnsafeMutableBufferPointer { buffer in
|
||||
getBytes(buffer.baseAddress!)
|
||||
return NSData(bytes: buffer.baseAddress, length: 16).databaseValue
|
||||
return Data(bytes: buffer.baseAddress!, count: 16).databaseValue
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user