StringsByteArrayFormatEnum.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. namespace Wayne.Lib
  2. {
  3. /// <summary>
  4. /// The format of a byte[] converted to (and sometimes from) a string.
  5. /// </summary>
  6. public enum StringsByteArrayFormat
  7. {
  8. #region Fields
  9. /// <summary>
  10. /// The bytes symbolizes decimal numbers.
  11. /// The converted string is comma separated.
  12. /// </summary>
  13. Bytes,
  14. /// <summary>
  15. /// The bytes symbolizes hexadecimal numbers.
  16. /// The converted string is comma separated.
  17. /// </summary>
  18. Hex,
  19. /// <summary>
  20. /// The bytes symbolizes hexadecimal numbers.
  21. /// </summary>
  22. CompactHex,
  23. /// <summary>
  24. /// The bytes symbolizes the current code page's ANSI characters.
  25. /// Unreadable characters are shown as hex-values.
  26. /// </summary>
  27. ANSI,
  28. /// <summary>
  29. /// The bytes symbolizes the current code page's ANSI characters.
  30. /// Unreadable characters are replaced with '?' which means that no conversion
  31. /// back from string to array is supported (due to data loss).
  32. /// </summary>
  33. CompactANSI,
  34. /// <summary>
  35. /// Put the bytes into a string using 1252 encoding
  36. /// </summary>
  37. String,
  38. /// <summary>
  39. /// Get raw bytes stuffed into a string back into a byte array
  40. /// </summary>
  41. Raw,
  42. #endregion
  43. }
  44. }