Enum Endianness
- Namespace
- Cuemon
- Assembly
- Cuemon.Kernel.dll
Defines the order in which a sequence of bytes are represented.
public enum Endianness
Fields
BigEndian = 0The big endian format means that data is stored big end first. Many hash standards is represented this way.
LittleEndian = 1The little endian format means that data is stored little end first. Most modern OS and hardware uses this.
Examples
The following example demonstrates how to use Endianness to specify byte order when configuring EndianOptions.
using Cuemon;
using System;
namespace MyApp.Examples;
public class EndiannessExample
{
public void Demonstrate()
{
var options = new EndianOptions
{
ByteOrder = Endianness.BigEndian
};
Console.WriteLine(options.ByteOrder == Endianness.BigEndian);
// outputs: True
}
}