Table of Contents

ReverseEndianness Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Kernel.dll
Source
src/Cuemon.Kernel/Convertible.cs

ReverseEndianness(byte[], Action<EndianOptions>)

Reverses the byte order of the specified byte array when required by the configured endianness.

public static byte[] ReverseEndianness(byte[] input, Action<EndianOptions> setup = null)

Parameters

input byte[]

The byte array whose byte order to reverse.

setup Action<EndianOptions>

The delegate that configures the desired byte order.

Returns

byte[]

input, either unchanged or reversed to match the configured byte order.