ZDCCryptoFileFormat

enum ZDCCryptoFileFormat {}

ZeroDarkCloud supports 2 types of encrypted files.

  • An unkown file format. Generally used for errors.

    Declaration

    Objective-C

    ZDCCryptoFileFormat_Unknown = 0

    Swift

    case unknown = 0
  • The CacheFile format is used for caching files to the local disk. It includes only the file itself, and excludes the metadata & thumbnail (which can be stored elsewhere).

    Declaration

    Objective-C

    ZDCCryptoFileFormat_CacheFile = 1

    Swift

    case cacheFile = 1
  • The CloudFile format is the format used when storing files in the cloud. It includes the file itself, along with optional sections for metadata & thumbnail.

    The CloudFile format allows all file information to be encoded in a single format, which allows for atomic operations in the cloud.

    Declaration

    Objective-C

    ZDCCryptoFileFormat_CloudFile = 2

    Swift

    case cloudFile = 2