ZDCCloudFileSection

enum ZDCCloudFileSection {}

A cloudfile is composed of several sections.

When reading from a CloudFile2CleartextInputStream, the stream will perform a soft break between each section via the -read:maxLength: method. That is, the ‘read:maxLength’ method will return a 0 (zero) when you reach the end of a section. This ensures you will only ever receive data from a single section at a time.

  • Every cloudfile contains a header. This is always the first section in a cloudfile.

    Declaration

    Objective-C

    ZDCCloudFileSection_Header = 0

    Swift

    case header = 0
  • Cloudfiles may optionally contain a metadata section.

    Declaration

    Objective-C

    ZDCCloudFileSection_Metadata

    Swift

    case metadata = 1
  • Cloudfiles may optionally contain a thumbnail section.

    Declaration

    Objective-C

    ZDCCloudFileSection_Thumbnail

    Swift

    case thumbnail = 2
  • The file/data section of the cloudfile.

    Declaration

    Objective-C

    ZDCCloudFileSection_Data

    Swift

    case data = 3
  • Indicates the End Of File has been reached.

    Declaration

    Objective-C

    ZDCCloudFileSection_EOF

    Swift

    case EOF = 4