Add attribute to declare struct properties relevant for its marshalling.

This commit is contained in:
2019-02-25 00:11:50 +00:00
parent 27699f1f33
commit ae797a1995
4 changed files with 75 additions and 12 deletions

View File

@@ -35,24 +35,17 @@
// ----------------------------------------------------------------------------
// Copyright © 2011-2019 Natalia Portillo
// ****************************************************************************/
namespace DiscImageChef.CommonTypes.Enums
{
/// <summary>
/// Describes the endianness of bits on a data structure
/// </summary>
/// <summary>Describes the endianness of bits on a data structure</summary>
public enum BitEndian
{
/// <summary>
/// Little-endian, or least significant bit
/// </summary>
/// <summary>Little-endian, or least significant bit</summary>
Little,
/// <summary>
/// Big-endian, or most significant bit
/// </summary>
/// <summary>Big-endian, or most significant bit</summary>
Big,
/// <summary>
/// PDP-11 endian, little endian except for 32-bit integers where the 16 halves are swapped between them
/// </summary>
/// <summary>PDP-11 endian, little endian except for 32-bit integers where the 16 halves are swapped between them</summary>
Pdp
}
}