mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-22 01:19:16 +01:00
prototype new Fields as propertyWrappers (Swift 5.2 above only)
This commit is contained in:
@@ -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