-
Declaration
Swift
public var info: TarEntryInfo
-
Entry’s data (
nil
if entry is a directory or data isn’t available).Note
Accessing setter of this property causesinfo.size
to be updated as well so it remains equal todata.count
. Ifdata
is set to benil
theninfo.size
is set to zero.Declaration
Swift
public var data: Data? { get set }
-
Initializes the entry with its info and data. The stored
info.size
will also be updated to be equal todata.count
. Ifdata
isnil
theninfo.size
will be set to zero.Declaration
Swift
public init(info: TarEntryInfo, data: Data?)
Parameters
info
Information about entry.
data
Entry’s data;
nil
if entry is a directory or data isn’t available.