SwiftZip Documentation Beta

Protocol Zip​Source​Writable

public protocol ZipSourceWritable: ZipSourceAdapter

A protocol for custom writable sources.

%3 ZipSourceWritable ZipSourceWritable ZipSourceAdapter ZipSourceAdapter ZipSourceWritable->ZipSourceAdapter

Conforms To

ZipSourceAdapter

A base protocol for all custom sources.

Requirements

begin​Write()

func beginWrite() throws

write(bytes:​count:​)

func write(bytes: UnsafeMutableRawPointer, count: Int) throws -> Int

commit​Write()

func commitWrite() throws

rollback​Write()

func rollbackWrite() throws

seek​Write(offset:​relative​To:​)

func seekWrite(offset: Int, relativeTo whence: ZipWhence) throws

tell​Write()

func tellWrite() throws -> Int

remove()

func remove() throws