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 moreHistoryReaderparsing options.Declaration
Swift
public struct ReadOptions : OptionSet -
Declaration
Swift
public struct Iterator : IteratorProtocol -
Declaration
Swift
public func makeIterator() -> Iterator -
Creates new
HistoryReaderDeclaration
Swift
public init?(fileUrl: URL, readOptions: ReadOptions? = nil)Parameters
fileUrlHistory file to read through.
-
Creates new
HistoryReaderDeclaration
Swift
public init?(data: Data, readOptions: ReadOptions? = nil)Parameters
dataHistory data to read through.
Install in Dash
HistoryReader Structure Reference