Table of Contents

Method ReverseEndianness

Namespace
Zyl.VectorTraits.Numerics
Assembly
VectorTraits.dll

ReverseEndianness(sbyte)

Reverses a primitive value by performing an endianness swap of the specified sbyte value, which effectively does nothing for an sbyte.

[CLSCompliant(false)]
public static sbyte ReverseEndianness(sbyte value)

Parameters

value sbyte

The value to reverse.

Returns

sbyte

The passed-in value, unmodified.

Remarks

This method effectively does nothing and was added only for consistency.

ReverseEndianness(short)

Reverses a primitive value by performing an endianness swap of the specified short value.

public static short ReverseEndianness(short value)

Parameters

value short

The value to reverse.

Returns

short

The reversed value.

ReverseEndianness(int)

Reverses a primitive value by performing an endianness swap of the specified int value.

public static int ReverseEndianness(int value)

Parameters

value int

The value to reverse.

Returns

int

The reversed value.

ReverseEndianness(long)

Reverses a primitive value by performing an endianness swap of the specified long value.

public static long ReverseEndianness(long value)

Parameters

value long

The value to reverse.

Returns

long

The reversed value.

ReverseEndianness(nint)

Reverses a primitive value by performing an endianness swap of the specified nint value.

public static nint ReverseEndianness(nint value)

Parameters

value nint

The value to reverse.

Returns

nint

The reversed value.

ReverseEndianness(ExInt128)

Reverses a primitive value by performing an endianness swap of the specified ExInt128 value.

[CLSCompliant(false)]
public static ExInt128 ReverseEndianness(ExInt128 value)

Parameters

value ExInt128

The value to reverse.

Returns

ExInt128

The reversed value.

ReverseEndianness(Int128)

Reverses a primitive value by performing an endianness swap of the specified Int128 value.

public static Int128 ReverseEndianness(Int128 value)

Parameters

value Int128

The value to reverse.

Returns

Int128

The reversed value.

ReverseEndianness(byte)

Reverses a primitive value by performing an endianness swap of the specified byte value, which effectively does nothing for an byte.

public static byte ReverseEndianness(byte value)

Parameters

value byte

The value to reverse.

Returns

byte

The passed-in value, unmodified.

Remarks

This method effectively does nothing and was added only for consistency.

ReverseEndianness(ushort)

Reverses a primitive value by performing an endianness swap of the specified ushort value.

[CLSCompliant(false)]
public static ushort ReverseEndianness(ushort value)

Parameters

value ushort

The value to reverse.

Returns

ushort

The reversed value.

ReverseEndianness(uint)

Reverses a primitive value by performing an endianness swap of the specified uint value.

[CLSCompliant(false)]
public static uint ReverseEndianness(uint value)

Parameters

value uint

The value to reverse.

Returns

uint

The reversed value.

ReverseEndianness(ulong)

Reverses a primitive value by performing an endianness swap of the specified ulong value.

[CLSCompliant(false)]
public static ulong ReverseEndianness(ulong value)

Parameters

value ulong

The value to reverse.

Returns

ulong

The reversed value.

ReverseEndianness(nuint)

Reverses a primitive value by performing an endianness swap of the specified nuint value.

[CLSCompliant(false)]
public static nuint ReverseEndianness(nuint value)

Parameters

value nuint

The value to reverse.

Returns

nuint

The reversed value.

ReverseEndianness(ExUInt128)

Reverses a primitive value by performing an endianness swap of the specified ExUInt128 value.

[CLSCompliant(false)]
public static ExUInt128 ReverseEndianness(ExUInt128 value)

Parameters

value ExUInt128

The value to reverse.

Returns

ExUInt128

The reversed value.

ReverseEndianness(UInt128)

Reverses a primitive value by performing an endianness swap of the specified UInt128 value.

[CLSCompliant(false)]
public static UInt128 ReverseEndianness(UInt128 value)

Parameters

value UInt128

The value to reverse.

Returns

UInt128

The reversed value.