ByteCountUnit

public enum ByteCountUnit : Int, Encodable

A unit of information supported by the Shortcuts app. See FileSize for usage.

  • A unit respresenting a number of bytes.

    Declaration

    Swift

    case bytes = 1
  • KB

    A unit respresenting a number of kilobytes (1,000 bytes).

    Declaration

    Swift

    case KB = 2
  • MB

    A unit respresenting a number of megabytes (1,000,000 bytes).

    Declaration

    Swift

    case MB = 4
  • GB

    A unit respresenting a number of gigabytes (1 billion bytes).

    Declaration

    Swift

    case GB = 8
  • TB

    A unit respresenting a number of terabytes (1 trillion bytes).

    Declaration

    Swift

    case TB = 16
  • PB

    A unit respresenting a number of petabytes (1,000 trillion bytes).

    Declaration

    Swift

    case PB = 32
  • EB

    A unit respresenting a number of exabytes (1 million trillion bytes).

    Declaration

    Swift

    case EB = 64
  • ZB

    A unit respresenting a number of zettabyte (1 billion trillion bytes).

    Declaration

    Swift

    case ZB = 128