FormatMasks

enum FormatMasks : UInt8

These are the various formats that the data can take.

  • Reserved -not used.

    Declaration

    Swift

    case reserved = 0x00
  • Simple Boolean (1 == true, 0 == false).

    Declaration

    Swift

    case bool = 0x01
  • Two-bit Unsigned Int (0..<4)

    Declaration

    Swift

    case uInt2 = 0x02
  • Four-bit Unsigned Int (0..<16)

    Declaration

    Swift

    case uInt4 = 0x03
  • Eight-bit Unsigned Int (0..<256)

    Declaration

    Swift

    case uInt8 = 0x04
  • Twelve-bit Unsigned Int (0..<4096)

    Declaration

    Swift

    case uInt12 = 0x05
  • Sixteen-bit Unsigned Int (0..<32768)

    Declaration

    Swift

    case uInt16 = 0x06
  • Twenty-Four-bit Unsigned Int (0..<16777216)

    Declaration

    Swift

    case uInt24 = 0x07
  • Thirty-Two-bit Unsigned Int (0..<4294967296)

    Declaration

    Swift

    case uInt32 = 0x08
  • Forty-Eight-bit Unsigned Int (0..<281474976710656)

    Declaration

    Swift

    case uInt48 = 0x09
  • Sixty-Four-bit Unsigned Int (0..<A BIG NUMBER)

    Declaration

    Swift

    case uInt64 = 0x0A
  • Sixty-Four-bit Unsigned Int (0..<AN EVEN BIGGER NUMBER)

    Declaration

    Swift

    case uInt128 = 0x0B
  • Two-Bit Signed Integer (-1…1)

    Declaration

    Swift

    case int2 = 0x0C
  • Twelve-Bit Signed Integer (-2048…2047)

    Declaration

    Swift

    case int12 = 0x0D
  • Sixteen-Bit Signed Integer (-32768…32767)

    Declaration

    Swift

    case int16 = 0x0E
  • Twenty-Four-Bit Signed Integer (-8388608…8388607)

    Declaration

    Swift

    case int24 = 0x0F
  • Thirty-Two-Bit Signed Integer (-2147483648…2147483647)

    Declaration

    Swift

    case int32 = 0x10
  • Forty-Eight-Bit Signed Integer (-140737488355328…140737488355327)

    Declaration

    Swift

    case int48 = 0x11
  • Sixty-Four-Bit Signed Integer (A SMALL NUMBER…A BIG NUMBER)

    Declaration

    Swift

    case int64 = 0x12
  • One-Hunderd-Twenty-Eight-Bit Signed Integer (A SMALLER NUMBER…A BIGGER NUMBER)

    Declaration

    Swift

    case int128 = 0x13
  • Thirty-Two-Bit Float (IEEE 754)

    Declaration

    Swift

    case ieee754Float32 = 0x14
  • Sixty-Four-Bit Float

    Declaration

    Swift

    case ieee754Float64 = 0x15
  • Sixteen-Bit Float (IEEE 11073)

    Declaration

    Swift

    case ieee11073Float16 = 0x16
  • Thirty-Two-Bit Float (IEEE 11073)

    Declaration

    Swift

    case ieee11073Float32 = 0x17
  • Sixteen-Bit Float (IEEE 20601)

    Declaration

    Swift

    case ieee20601DUInt16 = 0x18
  • UTF-8 Unicode Character

    Declaration

    Swift

    case utf8 = 0x19
  • UTF-16 Unicode Character

    Declaration

    Swift

    case utf16 = 0x1A
  • Application-Defined Opaque Structure.

    Declaration

    Swift

    case opaqueStruct = 0x1B