mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-15 21:32:10 +01:00
prototype new Fields as propertyWrappers (Swift 5.2 above only)
This commit is contained in:
1 parent
5e37ee4566
commit
43f61359da
33 files changed
+1796
-337
No files matched your search
@@ -110,13 +110,8 @@ public struct VersionLock: ExpressibleByDictionaryLiteral, Equatable {
|
||||
|
||||
var hashesByEntityName: [EntityName: Data] = [:]
|
||||
for (entityName, intArray) in keyValues {
|
||||
|
||||
hashesByEntityName[entityName] = Data(
|
||||
buffer: UnsafeBufferPointer(
|
||||
start: intArray,
|
||||
count: intArray.count
|
||||
)
|
||||
)
|
||||
|
||||
hashesByEntityName[entityName] = intArray.withUnsafeBufferPointer(Data.init(buffer:))
|
||||
}
|
||||
self.hashesByEntityName = hashesByEntityName
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user