Enumerationmigueldeicaza.swiftgodot 0.46.0SwiftGodot
ZipAppend
ZIPPacker.swift:20enum ZipAppend
Cases
case create
Create a new zip archive at the given path.
case createafter
Append a new zip archive to the end of the already existing file at the given path.
case addinzip
Add new files to the existing zip archive at the given path.
Other members in extension
Type members
Instance members
func close(
) -> GodotError Closes the underlying resources used by this instance.
func closeFile(
) -> GodotError Stops writing to a file within the archive.
func open(path: String, append: ZIPPacker.ZipAppend
) -> GodotError Opens a zip file for writing at the given path using the specified write mode.
func startFile(path: String
) -> GodotError Starts writing to a file within the archive. Only one file can be written at the same time.
func writeFile(data: PackedByteArray
) -> GodotError Write the given
data
to the file.
Citizens in SwiftGodot
Conformances
protocol CaseIterable
A type that provides a collection of all of its values.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
Type members
Instance members
var debugDescription: String
A textual representation of this instance, suitable for debugging
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.