mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Backtracing] Implement Codable for Backtrace.
Add support for Codable to Bactkrace. rdar://124913332
This commit is contained in:
@@ -250,7 +250,7 @@ public enum CompactImageMapFormat {
|
||||
}
|
||||
}
|
||||
|
||||
public mutating func decode() -> ImageMap? {
|
||||
mutating func decode() -> ([ImageMap.Image], ImageMap.WordSize)? {
|
||||
// Check the version and decode the size
|
||||
guard let infoByte = iterator.next() else {
|
||||
return nil
|
||||
@@ -375,7 +375,7 @@ public enum CompactImageMapFormat {
|
||||
wsMap = .sixtyFourBit
|
||||
}
|
||||
|
||||
return ImageMap(images: images, wordSize: wsMap)
|
||||
return (images, wsMap)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user