Format Property
The type of encoding to be used.
Syntax
public var format: NetcodeFormats {
get {...}
set {...} }
public enum NetcodeFormats: Int32 { case fmtUUEncode = 0 case fmtBase64 = 1 case fmtQP = 2 case fmtURL = 3 case fmtJIS = 4 case fmtYEncode = 5 case fmtMD5Hash = 6 case fmtSHA1Hash = 7 case fmtHex = 8 case fmtHTML = 9 case fmtHMAC = 10 case fmtUTF8 = 11 case fmtUTF7 = 12 case fmtBase32 = 13 case fmtBase64URL = 14 case fmtSHA256Hash = 15 case fmtPunycode = 16 }
Default Value
0
Remarks
This property contains the type of encoding to be used. The following are the possible values for this property, and the corresponding descriptions:
fmtUUEncode (0) | 3 Bytes are encoded into 4 readable characters. If multiple filenames are specified, then the extension ".uue" is used/expected. |
fmtBase64 (1) | Encoding format of MIME. Much like UUEncode but another subset of printable characters is used. If multiple filenames are specified, then the extension ".b64" is used/expected. |
fmtQP (2) | Quoted-Printable is another MIME format coding only special characters. Mostly used if the text contains special accented characters. If multiple filenames are specified, then the extension ".q_p" is used/expected. |
fmtURL (3) | Encoding of non-printable, 8-bit or unsafe characters as defined in RFC 1738. (No multiple filenames can be specified with this encoding.) |
fmtJIS (4) | Japanese Industrial Standards encoding of Japanese character sets. |
fmtYEncode (5) | Similar to Base64, but uses 8-bit encoding to reduce the amount of data being sent and received. Designed for binaries on the Usenet or Email. |
fmtMD5Hash (6) | The Message Digest 5 hashing algorithm produces a 128-bit hash output. |
fmtSHA1Hash (7) | The Secure Hash Algorithm produces a 128-bit hash output. |
fmtHex (8) | Creates a hexadecimal string representation of the decoded data. |
fmtHTML (9) | Creates an HTML-encoded string. |
fmtHMAC (10) | Creates a Hash-based Message Authentication Code for the given data. To set the key, use HMACKey. To set the hash algorithm to use to create the MAC, use HMACAlgorithm. |
fmtUTF8 (11) | Convert strings to/from UTF-8 to the current code page (Windows only). |
fmtUTF7 (12) | Convert strings to/from UTF-7 to the current code page (Windows only). |
fmtBase32 (13) | Similar to Base64, but uses 32 printable characters. If multiple filenames are specified, then the extension ".b32" is used/expected. |
fmtBase64URL (14) | Base64 encoding for use within URLs. The "+" character is replaced with "-". The "/" character is replaced with "_". The padding character "=" is omitted. |
fmtSHA256 (15) | The Secure Hash Algorithm 2 produces a 256-bit hash output. |
fmtPunycode (16) | Convert string to/from Punycode. The CodePage configuration setting must be set to a value capable of interpreting the non-ASCII character data being encoded/decoded. For instance 65001. |