12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- namespace Wayne.Lib
- {
- /// <summary>
- /// The format of a byte[] converted to (and sometimes from) a string.
- /// </summary>
- public enum StringsByteArrayFormat
- {
- #region Fields
- /// <summary>
- /// The bytes symbolizes decimal numbers.
- /// The converted string is comma separated.
- /// </summary>
- Bytes,
- /// <summary>
- /// The bytes symbolizes hexadecimal numbers.
- /// The converted string is comma separated.
- /// </summary>
- Hex,
- /// <summary>
- /// The bytes symbolizes hexadecimal numbers.
- /// </summary>
- CompactHex,
- /// <summary>
- /// The bytes symbolizes the current code page's ANSI characters.
- /// Unreadable characters are shown as hex-values.
- /// </summary>
- ANSI,
- /// <summary>
- /// The bytes symbolizes the current code page's ANSI characters.
- /// Unreadable characters are replaced with '?' which means that no conversion
- /// back from string to array is supported (due to data loss).
- /// </summary>
- CompactANSI,
- /// <summary>
- /// Put the bytes into a string using 1252 encoding
- /// </summary>
- String,
- /// <summary>
- /// Get raw bytes stuffed into a string back into a byte array
- /// </summary>
- Raw,
- #endregion
- }
- }
|