HistoryReader
public struct HistoryReader : Sequence
Provides event-by-event access to history files contents.
Supports pbf.gz
files. History files are created by HistoryRecording.stopRecordingHistory(writingFileWith:)
and saved to HistoryRecording.historyDirectoryURL
.
-
Configures
See moreHistoryReader
parsing options.Declaration
Swift
public struct ReadOptions : OptionSet
-
Declaration
Swift
public struct Iterator : IteratorProtocol
-
Declaration
Swift
public func makeIterator() -> Iterator
-
Creates new
HistoryReader
Declaration
Swift
public init?(fileUrl: URL, readOptions: ReadOptions? = nil)
Parameters
fileUrl
History file to read through.
-
Creates new
HistoryReader
Declaration
Swift
public init?(data: Data, readOptions: ReadOptions? = nil)
Parameters
data
History data to read through.