Created
September 26, 2016 23:05
-
-
Save andersio/844e7a1d953b0acbd5e0b5a70b2c0501 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public enum TypeEncoding: Int8 { | |
| // Integer | |
| case char = 99 | |
| case int = 105 | |
| case short = 115 | |
| case long = 108 | |
| case longLong = 113 | |
| // Unsigned Integer | |
| case unsignedChar = 67 | |
| case unsignedInt = 73 | |
| case unsignedShort = 83 | |
| case unsignedLong = 76 | |
| case unsignedLongLong = 81 | |
| // FP | |
| case float = 102 | |
| case double = 100 | |
| case bool = 66 | |
| case void = 118 | |
| case cString = 42 | |
| case object = 64 | |
| case type = 35 | |
| case selector = 58 | |
| case array = 91 | |
| case bitfield = 98 | |
| case pointer = 94 | |
| // Note: Structure `{` and union `(` are not supported. | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment