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 -
A unit respresenting a number of kilobytes (1,000 bytes).
Declaration
Swift
case KB = 2 -
A unit respresenting a number of megabytes (1,000,000 bytes).
Declaration
Swift
case MB = 4 -
A unit respresenting a number of gigabytes (1 billion bytes).
Declaration
Swift
case GB = 8 -
A unit respresenting a number of terabytes (1 trillion bytes).
Declaration
Swift
case TB = 16 -
A unit respresenting a number of petabytes (1,000 trillion bytes).
Declaration
Swift
case PB = 32 -
A unit respresenting a number of exabytes (1 million trillion bytes).
Declaration
Swift
case EB = 64 -
A unit respresenting a number of zettabyte (1 billion trillion bytes).
Declaration
Swift
case ZB = 128
View on GitHub
ByteCountUnit Enumeration Reference