TarEntry

public struct TarEntry : ContainerEntry

Represents an entry from the TAR container.

  • 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 causes info.size to be updated as well so it remains equal to data.count. If data is set to be nil then info.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 to data.count. If data is nil then info.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.