Class StructEndiannessAttribute
An attribute used to help conversion structs back and forth into arrays of bytes via extension methods included in this library ToStruct and ToBytes.
Namespace: Swan
Syntax
public class StructEndiannessAttribute : Attribute
Constructors
StructEndiannessAttribute(Endianness)
Initializes a new instance of the StructEndiannessAttribute class.
Declaration
public StructEndiannessAttribute(Endianness endianness)
Parameters
Type | Name | Description |
---|---|---|
Endianness | endianness | The endianness. |
Properties
Endianness
Gets the endianness.
Declaration
public Endianness Endianness { get; }
Property Value
Type | Description |
---|---|
Endianness | The endianness. |